Class: Appboost::HostSiteGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/appboost/host_site_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_nginx_configObject



18
19
20
# File 'lib/generators/appboost/host_site_generator.rb', line 18

def copy_nginx_config
  copy_file "#{Dir.pwd}/config/nginx/#{app_name}.conf", "#{options[:nginx_sites]}/#{app_name}.conf"
end

#reload_nginxObject



22
23
24
# File 'lib/generators/appboost/host_site_generator.rb', line 22

def reload_nginx
  system "/etc/init.d/nginx reload" if options[:reload_nginx]
end