THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
| # config/deploy.rb | |
| # probably a lot of ways to improve this... | |
| set :application, 'my_app' | |
| set :repo_url, 'git@github.com:USERNAME/my_app.git' | |
| # should set up a deploy user | |
| set :user, 'deploy' | |
| set :deploy_to, '/var/www/my_app' | |
| set :scm, :git |
| set :shared_children, shared_children << 'tmp/sockets' | |
| namespace :deploy do | |
| desc "Start the application" | |
| task :start, :roles => :app, :except => { :no_release => true } do | |
| run "cd #{current_path} && RAILS_ENV=#{stage} bundle exec puma -b 'unix://#{shared_path}/sockets/puma.sock' -S #{shared_path}/sockets/puma.state --control 'unix://#{shared_path}/sockets/pumactl.sock' >> #{shared_path}/log/puma-#{stage}.log 2>&1 &", :pty => false | |
| end | |
| desc "Stop the application" | |
| task :stop, :roles => :app, :except => { :no_release => true } do |
| #!/bin/bash | |
| for f in `find . -type f -name "*.rar"` | |
| do | |
| echo "Unpacking " $f " into " `dirname $f` | |
| unrar x -y $f `dirname $f` | |
| rm $f | |
| done |