Skip to content

Commit

Permalink
msic
Browse files Browse the repository at this point in the history
  • Loading branch information
mayel committed Oct 22, 2024
1 parent b6c592d commit 87a6d3c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
1 change: 0 additions & 1 deletion .erlang.cookie

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,4 @@ archeometer_bonfire.db
reports/
docs/xref_graph.svg
tunnel.conf
.erlang.cookie
4 changes: 1 addition & 3 deletions flavours/classic/config/templates/not_secret.env
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
SECRET_KEY_BASE=you-should-put-a-secure-string-here
SIGNING_SALT=you-should-put-a-different-secure-string-here
ENCRYPTION_SALT=you-should-put-yet-another-secure-string-here
ERLANG_COOKIE=you-should-a-password-here

# database access
POSTGRES_PASSWORD=put_a_secure_db_pw_here
Expand Down Expand Up @@ -34,9 +35,6 @@ OTEL_ENABLED=0
# default admin user if you generate seed data
SEEDS_USER=root

# backend stuff
ERLANG_COOKIE=bonfire_cookie

# Bonfire extensions configs
WEB_PUSH_SUBJECT=mailto:bonfire@example.com
# WEB_PUSH_PUBLIC_KEY=
Expand Down
6 changes: 3 additions & 3 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,11 @@ prepare:
MIX_ENV=dev just dev-run "db" {{args}}

@dev-extra:
iex --sname extra --remsh localenv
iex --sname extra --cookie $ERLANG_COOKIE --remsh localenv@127.0.0.1

dev-run services="db" *args='':
@just init $services
{{ if WITH_DOCKER == "total" { "just dev-docker $args" } else { "iex --sname localenv -S mix phx.server $args" } }}
{{ if WITH_DOCKER == "total" { "just dev-docker $args" } else { "iex --name localenv@127.0.0.1 --cookie $ERLANG_COOKIE -S mix phx.server $args" } }}
# TODO: pass args to docker as well

@dev-remote: init
Expand All @@ -202,7 +202,7 @@ dev-profile profile: docker-stop-web
docker logs bonfire_web -f

dev-profile-iex profile:
just docker-compose --profile $profile exec web iex --sname extra --remsh localenv
just docker-compose --profile $profile exec web iex --sname extra --remsh localenv@127.0.0.1

dev-federate:
FEDERATE=yes HOT_CODE_RELOAD=0 HOSTNAME=`just local-tunnel-hostname` PUBLIC_PORT=443 just dev
Expand Down

0 comments on commit 87a6d3c

Please sign in to comment.