Prod build process
This commit is contained in:
Regular → Executable
+9
-3
@@ -2,14 +2,20 @@
|
||||
|
||||
set -e
|
||||
|
||||
printenv >> /etc/environment
|
||||
# printenv >> /etc/environment
|
||||
|
||||
# echo "updating cron..."
|
||||
# bundle exec whenever > crontab
|
||||
|
||||
# echo "starting cron..."
|
||||
# supercronic /rails/crontab
|
||||
|
||||
echo "updating cron..."
|
||||
bundle exec whenever --update-crontab --set environment=development
|
||||
bundle exec whenever --update-crontab
|
||||
|
||||
# Start cron in foreground
|
||||
echo "starting cron..."
|
||||
cron
|
||||
cron -f
|
||||
# bundle exec whenever --update-crontab
|
||||
|
||||
# Then exec the container's main process (what's set as CMD in the Dockerfile).
|
||||
|
||||
Reference in New Issue
Block a user