-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #70 from studio24/update-deployer7
Update deployer7
- Loading branch information
Showing
5 changed files
with
90 additions
and
166 deletions.
There are no files selected for viewing
This file contains 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
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" | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
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 | ||
*/ | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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'); | ||
|
||
|
||
|
@@ -48,4 +61,3 @@ | |
* | ||
* Any custom deployment tasks to run | ||
*/ | ||
|
This file was deleted.
Oops, something went wrong.