before adding users
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
printenv >> /etc/environment
|
||||
|
||||
echo "updating cron..."
|
||||
bundle exec whenever --update-crontab --set environment=development
|
||||
|
||||
# Start cron in foreground
|
||||
echo "starting cron..."
|
||||
cron
|
||||
# bundle exec whenever --update-crontab
|
||||
|
||||
# Then exec the container's main process (what's set as CMD in the Dockerfile).
|
||||
exec "$@"
|
||||
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Remove a potentially pre-existing server.pid for Rails.
|
||||
rm -f /usr/src/app/tmp/pids/server.pid
|
||||
|
||||
rm -rf /usr/local/bundle/cache/*.gem
|
||||
|
||||
echo "bundle install..."
|
||||
bundle check || bundle install --jobs 4
|
||||
|
||||
# Then exec the container's main process (what's set as CMD in the Dockerfile).
|
||||
exec "$@"
|
||||
Reference in New Issue
Block a user