Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
shibukk committed Jul 20, 2018
1 parent f38f51f commit 6758d93
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions bin/start_server
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash -e

# Install gems
bundle install --jobs=4 --path=/bundle
bundle install --jobs=4

# Wait for MySQL staring
until mysqladmin ping -h${MYSQL_HOSTNAME} -u${MYSQL_ROOT_USER} -p${MYSQL_ROOT_PASSWORD} --silent; do
Expand All @@ -12,7 +12,7 @@ done
if [ -e /app/tmp/pids/*.pid ]; then rm /app/tmp/pids/*.pid; fi

# Setup database
bundle exec rails db:migrate 2>/dev/null || bundle exec rails db:setup
rails db:migrate 2>/dev/null || rails db:setup

# Execute the given or default command
exec "$@"
exec "$@"
4 changes: 2 additions & 2 deletions root/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ services:
dockerfile: ./docker/web/Dockerfile
volumes:
- node_modules:/app/node_modules
- bundle:/bundle
- bundle:/usr/local/bundle
- .:/app
env_file: ./docker/.env
environment:
Expand All @@ -43,4 +43,4 @@ volumes:
bundle:
driver: local
binlog:
driver: local
driver: local

0 comments on commit 6758d93

Please sign in to comment.