This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :app do | |
desc "排版工作" | |
task :composer, [:start, :end] => :environment do |task, args| | |
keep_loop = true | |
puts "rake app:composer run. I have PID #{Process.pid}" | |
`echo "#{Process.pid}" > #{Rails.root}/tmp/composer.pid` | |
`echo "#{Process.ppid}" > #{Rails.root}/tmp/composer.ppid` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Run as root | |
# $ bash <(curl -s https://raw.github.com/gist/1631411) | |
# | |
# Update, upgrade and install development tools: | |
apt-get update | |
apt-get -y upgrade | |
apt-get -y install build-essential git-core curl \ | |
libssl-dev \ |