Sha256: bbedb0c4d617c9b4962452699940232cc3aaa5bf0cf8de699b9f88c212829852
Contents?: true
Size: 754 Bytes
Versions: 4
Compression:
Stored size: 754 Bytes
Contents
Standup.script do def run scripts.ec2.open_port 80 install_gem 'passenger', '3.0.0' unless file_exists? '/opt/nginx/sbin/nginx' install_package 'libcurl4-openssl-dev' sudo 'passenger-install-nginx-module --auto --auto-download --prefix=/opt/nginx' end upload script_file('nginx.conf'), :to =>'/opt/nginx/conf/nginx.conf', :sudo => true upload script_file('upstart.conf'), :to =>'/etc/init/nginx.conf', :sudo => true sudo 'initctl reload-configuration' restart_nginx end def restart_nginx if exec('initctl status nginx') =~ /running/i sudo 'initctl restart nginx' else sudo 'initctl start nginx' end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
standup-0.3.2 | scripts/passenger.rb |
standup-0.3.1 | scripts/passenger.rb |
standup-0.3.0 | scripts/passenger.rb |
standup-0.2.0 | scripts/passenger.rb |