forked from publiclab/plots2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (33 loc) · 1.09 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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
rm -f ./tmp/pids/server.pid
docker-compose up -d
docker-compose exec -T web bash -c "echo 172.19.0.1 smtp >> /etc/hosts"
docker-compose exec -T web bundle exec whenever --update-crontab
docker-compose exec -T web service cron start
install-dev:
echo "Installing RubyGems"
bundle install --without production mysql
echo "Installing Bower Packages"
bower install
echo "Copying example configuartions"
cp db/schema.rb.example db/schema.rb
cp config/database.yml.sqlite.example config/database.yml
echo "Setting up the database"
rake db:setup
setup-complete:
echo "Installing Ruby"
rvm install ruby-2.1.2
echo "Installing Bundler"
gem install bundler
echo "Installing Bower"
yarn global add bower