-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2579 from ujh/prepare-for-prod-build
Prepare for adding a production build
- Loading branch information
Showing
4 changed files
with
34 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/sh -ex | ||
|
||
cd /app | ||
|
||
|
||
bundle check || bundle install || true | ||
|
||
if [[ $@ =~ 'yarn' ]] | ||
then | ||
yarn install --frozen-lockfile | ||
else | ||
# Remove a potentially pre-existing server.pid for Rails. | ||
rm -rf /app/tmp/pids/server.pid | ||
fi | ||
|
||
# Since we specified both an ENTRYPOINT and a CMD (which could be overwritten | ||
# by a "command"), Docker passes the CMD/command to the ENTRYPOINT script as | ||
# arguments. So we can run the CMD/command with exec "$@". | ||
exec "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,4 @@ | ||
#!/bin/sh -ex | ||
|
||
cd /app | ||
|
||
|
||
bundle check || bundle install || true | ||
|
||
if [[ $@ =~ 'yarn' ]] | ||
then | ||
yarn install --frozen-lockfile | ||
else | ||
# Remove a potentially pre-existing server.pid for Rails. | ||
rm -rf /app/tmp/pids/server.pid | ||
fi | ||
|
||
# Since we specified both an ENTRYPOINT and a CMD (which could be overwritten | ||
# by a "command"), Docker passes the CMD/command to the ENTRYPOINT script as | ||
# arguments. So we can run the CMD/command with exec "$@". | ||
exec "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters