Skip to content

Commit

Permalink
Merge pull request phoenixframework#5654 from reisub/safer-scripts
Browse files Browse the repository at this point in the history
Make generated release scripts safer
  • Loading branch information
Gazler authored Dec 6, 2023
2 parents 2196ab5 + 148fc88 commit a66e7c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions priv/templates/phx.gen.release/rel/migrate.sh.eex
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/sh
set -eu

cd -P -- "$(dirname -- "$0")"
exec ./<%= otp_app %> eval <%= app_namespace %>.Release.migrate
2 changes: 2 additions & 0 deletions priv/templates/phx.gen.release/rel/server.sh.eex
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/sh
set -eu

cd -P -- "$(dirname -- "$0")"
PHX_SERVER=true exec ./<%= otp_app %> start

0 comments on commit a66e7c3

Please sign in to comment.