2016-07-27 11:17:50 -05:00
|
|
|
#!/bin/bash
|
2016-07-26 13:50:35 -05:00
|
|
|
if [ -d '/usr/app' ]; then
|
|
|
|
cd /usr/app
|
|
|
|
bundle
|
2016-07-28 16:14:41 -05:00
|
|
|
bower install
|
|
|
|
cd vendor/assets/ && bitters install && cd /usr/app
|
2016-07-26 10:38:00 -05:00
|
|
|
|
2016-07-26 13:50:35 -05:00
|
|
|
service mysql start
|
|
|
|
rails db:setup
|
|
|
|
rails db:migrate
|
|
|
|
rails db:fixtures:load
|
2016-07-26 10:38:00 -05:00
|
|
|
|
2016-07-26 13:50:35 -05:00
|
|
|
rails s -b 0.0.0.0
|
|
|
|
else
|
|
|
|
echo "Are you in docker container?"
|
|
|
|
fi
|