#!/bin/bash
export RAILS_ENV=production
cd /usr/src/app
case ${DOCKER_STATE} in
create)
    echo "running create"
    bundle exec rake db:create db:schema:load db:seed
    ;;
seed)
    echo "running seed"
    bundle exec rake db:schema:load db:seed
    ;;
migrate)
    echo "running migrate"
    bundle exec rake db:schema:load
    ;;
esac
bundle exec import:all assets:precompile
bundle exec rails server --binding 0.0.0.0

#!/bin/bash
export RAILS_ENV=production
cd /usr/src/app
case ${DOCKER_STATE} in
create)
    echo "running create"
    bundle exec rake db:create db:schema:load db:seed
    ;;
seed)
    echo "running seed"
    bundle exec rake db:schema:load db:seed
    ;;
migrate)
    echo "running migrate"
    bundle exec rake db:schema:load
    ;;
esac
bundle exec rake assets:precompile
bundle exec rails server --binding 0.0.0.0

Remove import:all, which isn't necessary here `import:all` was used elsewhere, but it turns out that this app doesn't need it.
Remove import:all, which isn't necessary here
`import:all` was used elsewhere, but it turns out that this app doesn't
need it.
