Skip to content

Commit

Permalink
Merge pull request #70 from studio24/update-deployer7
Browse files Browse the repository at this point in the history
Update deployer7
  • Loading branch information
AlanJIsaacson authored May 15, 2024
2 parents 4fae3fa + 984ef7e commit 433f183
Show file tree
Hide file tree
Showing 5 changed files with 90 additions and 166 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"require": {
"studio24/deployer-recipes": "dev-update-to-deployer-7"
"studio24/deployer-recipes": "^2.0"
}
}
28 changes: 13 additions & 15 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

51 changes: 51 additions & 0 deletions deploy-old.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?php
namespace Deployer;

/**
* 1. Deployer recipes we are using for this website
*/
require 'recipe/common.php';
require 'vendor/studio24/deployer-recipes/recipe/common.php';

/**
* 2. Deployment configuration variables
*/

// Friendly project name
set('application', 'Amplify');

// The repo for the project
set('repository', '[email protected]:studio24/amplify.git');;

// Shared directories that are not in git and need to persist between deployments (e.g. uploaded images)
add ('shared_directories', [
'.well-known'
]);

set('webroot', 'web');
set('git_ssh_command', 'ssh');

// Default stage - prevents accidental deploying to production with dep deploy
set('default_stage', 'staging');

/**
* 3. Hosts
*/

host('production')
->set('hostname', '63.34.69.8')
->set('deploy_path', '/data/var/www/vhosts/amplify/production')
->set('url', 'https://amplify.studio24.net');

host('staging')
->set('hostname', '63.34.69.8')
->set('deploy_path', '/data/var/www/vhosts/amplify/staging')
->set('url', 'https://amplify-staging.studio24.net');


/**
* 4. Deployment tasks
*
* Any custom deployment tasks to run
*/

38 changes: 25 additions & 13 deletions deploy.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,34 @@
/**
* 1. Deployer recipes we are using for this website
*/
require 'recipe/common.php';
require 'vendor/studio24/deployer-recipes/recipe/common.php';
require_once 'vendor/studio24/deployer-recipes/recipe/default.php';


/**
* 2. Deployment configuration variables
*/

// Friendly project name
// Project name
set('application', 'Amplify');

// The repo for the project
set('repository', '[email protected]:studio24/amplify.git');;
// Git repo
set('repository', '[email protected]:studio24/amplify.git');

// Shared directories that are not in git and need to persist between deployments (e.g. uploaded images)
add ('shared_directories', [
'.well-known'
]);
// Filesystem volume we're deploying to
set('disk_space_filesystem', '/data');

set('webroot', 'web');
// Required for this project as the server doesn't support openssh v7.6
set('git_ssh_command', 'ssh');

// Default stage - prevents accidental deploying to production with dep deploy
set('default_stage', 'staging');
// Shared directories that need to persist between deployments
set('shared_dirs', [
'.well-known',
]);

// Writable directories
set('writable_dirs', [
]);


/**
* 3. Hosts
Expand All @@ -35,11 +40,19 @@
host('production')
->set('hostname', '63.34.69.8')
->set('deploy_path', '/data/var/www/vhosts/amplify/production')
->set('log_files', [
'/data/logs/amplify.access.log',
'/data/logs/amplify.error.log',
])
->set('url', 'https://amplify.studio24.net');

host('staging')
->set('hostname', '63.34.69.8')
->set('deploy_path', '/data/var/www/vhosts/amplify/staging')
->set('log_files', [
'/data/logs/amplify-staging.access.log',
'/data/logs/amplify-staging.error.log',
])
->set('url', 'https://amplify-staging.studio24.net');


Expand All @@ -48,4 +61,3 @@
*
* Any custom deployment tasks to run
*/

137 changes: 0 additions & 137 deletions deploy_orig.php

This file was deleted.

0 comments on commit 433f183

Please sign in to comment.