forked from publiclab/mapknitter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
17 lines (14 loc) · 695 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
export COMPOSE_HTTP_TIMEOUT=360
build:
cp config/database.yml.example config/database.yml
cp config/amazon_s3.yml.example config/amazon_s3.yml
cp db/schema.rb.example db/schema.rb
docker-compose down --remove-orphans
docker-compose build
deploy-container:
docker-compose run --rm web bash -l -c "sleep 10 && bower install --allow-root && rake db:setup && rake db:migrate && rake assets:precompile"
docker-compose up -d
docker-compose exec -T web bash -l -c "sleep 10 && rake db:setup && rake db:migrate && rake assets:precompile"
redeploy-container:
docker-compose up --force-recreate -d
docker-compose exec -T web bash -l -c "sleep 10 && rake db:migrate && rake assets:precompile"