at the end of the day, it was inevitable

This commit is contained in:
Mo Elzubeir
2022-12-09 08:36:26 -06:00
commit 1218570914
1768 changed files with 887087 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
server "10.1.1.55", :web, :app, :db, :primary => true, :no_release => false
set :deploy_root, "/var/www/html/new/" #project root path on server
set :deploy_to, "#{deploy_root}/#{deploy_dir}"
set :user, "jenkins"
after "deploy:create_symlink" do
capifony_pretty_print "--> run #{update_cmd}"
run "sh -c 'cd #{latest_release}; #{update_cmd}'"
capifony_pretty_print "--> Creating symlimk for web folder"
run "sh -c 'rm -rf #{deploy_root}/web && ln -s #{latest_release}/web #{deploy_root}/web'"
capifony_puts_ok
end
+23
View File
@@ -0,0 +1,23 @@
server "192.168.0.110", :web, :app, :db, :primary => true, :no_release => false
set :deploy_root, "/var/www/html/new" #project root path on server
set :deploy_to, "#{deploy_root}/#{deploy_dir}"
set :user, "socialhose"
ssh_options[:forward_agent] = true
ssh_options[:port] = "22"
set :deploy_via, :rsync_with_remote_cache
set :rsync_options, "--recursive --delete --delete-excluded --exclude .git* --exclude .build*"
set :controllers_to_clear, [ "app_dev.php", "app_test.php" ]
set :symfony_env_prod, "stage"
after "deploy:create_symlink" do
capifony_pretty_print "--> Creating symlimk for web folder"
run "sh -c 'rm -rf #{deploy_root}/web && ln -s #{latest_release}/web #{deploy_root}/web'"
capifony_puts_ok
capifony_pretty_print "--> Restart workers"
run "sh -c 'supervisorctl restart documents_email'"
run "sh -c 'supervisorctl restart documents_fetching'"
run "sh -c 'supervisorctl restart notification_fetching'"
run "sh -c 'supervisorctl restart notification_sending'"
capifony_puts_ok
end
+23
View File
@@ -0,0 +1,23 @@
server "34.228.99.0", :web, :app, :db, :primary => true, :no_release => false
set :deploy_root, "/var/www/socialhose/" #project root path on server
set :deploy_to, "#{deploy_root}/#{deploy_dir}"
set :user, "deploy"
set :branch, "master"
set :webserver_user, "nginx"
set :controllers_to_clear, ['app_dev.php', 'app_test.php', 'app_stage.php']
set :symfony_env_prod, "prod"
set :deploy_via, :rsync_with_remote_cache
set :rsync_options, "--recursive --delete --delete-excluded --exclude .git* --exclude .build*"
after "deploy:create_symlink" do
capifony_pretty_print "--> Creating symlimk for web folder"
run "sh -c 'rm -rf #{deploy_root}/web && ln -s #{latest_release}/web #{deploy_root}/web'"
capifony_puts_ok
capifony_pretty_print "--> Restart workers"
run "sh -c 'supervisorctl restart documents_email:*'"
run "sh -c 'supervisorctl restart documents_fetching:*'"
run "sh -c 'supervisorctl restart notification_fetching:*'"
run "sh -c 'supervisorctl restart notification_sending:*'"
capifony_puts_ok
end