Skip to content

Commit

Permalink
renaming for better readability
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderUngefug committed Jun 11, 2024
1 parent 001bf21 commit 007ca4b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
12 changes: 7 additions & 5 deletions bin/start
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,20 @@ if [ "$RAILS_ENV" = "production" ]; then
done
fi

./bin/rails assets:precompile
./bin/rails db:create
./bin/rails db:migrate:with_data
cd ./bin # TODO: How it worked without changing directory?

rails assets:precompile
rails db:create
rails db:migrate:with_data

# Write environment variables to crontab
env | grep -v 'no_proxy' | while read -r line; do
echo "$line"
done >/etc/crontabs/root

echo "* * * * * /usr/src/app/cronjobs/delete_expired_rooms.sh >> /var/log/cron.log 2>&1" >>/etc/crontabs/root
echo "* * * * * /usr/src/app/cronjobs/daily_rake_tasks.sh >> /var/log/cron.log 2>&1" >>/etc/crontabs/root # TODO: Change to daily for production "0 0 * * *"

# Start cron daemon as a background process
crond

exec ./bin/rails s -b 0.0.0.0 -p $PORT
exec rails s -b 0.0.0.0 -p $PORT
File renamed without changes.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ services:
- redis-data:/data

greenlight:
image: my-greenlight-dev
image: greenlight
container_name: greenlight
restart: unless-stopped
ports:
Expand Down
4 changes: 2 additions & 2 deletions restart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash -e

docker-compose down
docker build -f Dockerfile.dev -t my-greenlight-dev .
docker-compose up -d
docker build -f Dockerfile -t greenlight .
docker-compose up -d

0 comments on commit 007ca4b

Please sign in to comment.