diff --git a/Makefile b/Makefile index 69028cd158..c7ebfd2092 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,19 @@ +build: + cp config/database.yml.example config/database.yml + cp db/schema.rb.example db/schema.rb + docker-compose down --remove-orphans + docker-compose build + +deploy-container: + docker-compose run web sleep 5 + docker-compose run web rake db:migrate + docker-compose run web bower install --allow-root + docker-compose run web bower update --allow-root + docker-compose run web rake assets:precompile + bash -c "test -e tmp/pids/server.pid && rm tmp/pids/server.pid" + docker-compose up -d + docker-compose exec -T web bash -c "echo 172.19.0.1 smtp >> /etc/hosts" + install-dev: echo "Installing RubyGems" bundle install --without production mysql