Skip to content

Instantly share code, notes, and snippets.

@iagopiimenta
Last active May 31, 2017 15:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iagopiimenta/f984b9bc8e4be16e343cec5e73ce071e to your computer and use it in GitHub Desktop.
Save iagopiimenta/f984b9bc8e4be16e343cec5e73ce071e to your computer and use it in GitHub Desktop.
dokcer-compose: command: ./script/start bundle exec rails s -p 3000 -b 0.0.0.0
#!/usr/bin/env bash
# if ! [ -x "$(command -v bower)" ]; then
# npm install -g bower
# fi
mkdir -p tmp/pids
if ! [ -z "$REMOVE_FILE" ]
then
echo "Removing file: $REMOVE_FILE"
rm -f $REMOVE_FILE
fi
bundle check || bundle install
bundle exec rake db:migrate
bundle exec $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment