-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Test
committed
Sep 17, 2024
1 parent
b296991
commit 6c27122
Showing
5 changed files
with
31 additions
and
18 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 |
---|---|---|
@@ -1 +1 @@ | ||
1.0.10-alpha | ||
1.0.11-alpha |
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 |
---|---|---|
@@ -1,21 +1,10 @@ | ||
#!/bin/bash | ||
set -e | ||
echo "Starting entrypoint.sh" | ||
export REDIS_URL=redis://redis:6379/1 | ||
|
||
# Ensure SECRET_KEY_BASE is set | ||
if [ -z "$SECRET_KEY_BASE" ]; then | ||
export SECRET_KEY_BASE=$(bin/rails secret) | ||
fi | ||
# Call the first entrypoint script | ||
./rails-entrypoint.sh | ||
|
||
echo "Running bundle exec rake assets:precompile" | ||
rm -f /app/tmp/pids/server.pid | ||
# Call the second entrypoint script | ||
./sidekiq-entrypoint.sh | ||
|
||
echo "Running bundle exec rake assets:precompile" | ||
bundle exec rake assets:precompile RAILS_ENV=production | ||
|
||
echo "Running bundle exec rails db:migrate RAILS_ENV=production" | ||
bundle exec rails db:migrate RAILS_ENV=production | ||
|
||
echo "Executing final command: $@" | ||
# Finally, execute the command passed to the Docker container | ||
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
set -e | ||
echo "Starting entrypoint.sh" | ||
export REDIS_URL=redis://redis:6379/1 | ||
|
||
# Ensure SECRET_KEY_BASE is set | ||
if [ -z "$SECRET_KEY_BASE" ]; then | ||
export SECRET_KEY_BASE=$(bin/rails secret) | ||
fi | ||
|
||
echo "Running bundle exec rake assets:precompile" | ||
rm -f /app/tmp/pids/server.pid | ||
|
||
echo "Running bundle exec rake assets:precompile" | ||
bundle exec rake assets:precompile RAILS_ENV=production | ||
|
||
echo "Running bundle exec rails db:migrate RAILS_ENV=production" | ||
bundle exec rails db:migrate RAILS_ENV=production | ||
|
||
echo "Executing final command: $@" | ||
exec "$@" |