Created
August 5, 2016 23:52
-
-
Save tony13tv/a9d468aa6ade9e5ec58b29af1bbfb757 to your computer and use it in GitHub Desktop.
Rocketeer Minimal Configuration
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
<?php | |
return [ | |
'application_name' => '<application_name>', | |
'default' => ['development'], | |
'connections' => [ | |
'production' => [ | |
'host' => '<production_ip_or_domain>', | |
'username' => '<username>' | |
], | |
'development' => [ | |
'host' => '<development_ip_or_domain>', | |
'username' => '<username>' | |
] | |
], | |
'on' => [ | |
'connections' => [ | |
'production' => [ | |
'scm' => [ | |
'branch' => 'master' | |
], | |
'remote' => [ | |
'root_directory' => '<production_root_directory>', | |
] | |
], | |
'development' => [ | |
'scm' => [ | |
'branch' => 'development' | |
], | |
'remote' => [ | |
'root_directory' => '<development_root_directory>', | |
], | |
'paths' => [ | |
'composer' => '<development_composer_path>' | |
] | |
], | |
] | |
] | |
]; |
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
<?php | |
return [ | |
'shared' => [ | |
'<list_of_shared_files>' | |
], | |
'permissions' => [ | |
// The folders and files to set as web writable | |
'files' => [ | |
'<list_of_files_with_permissions>', | |
], | |
// Here you can configure what actions will be executed to set | |
// permissions on the folder above. The Closure can return | |
// a single command as a string or an array of commands | |
'callback' => function ($task, $file) { | |
return [ | |
sprintf('chmod -R 755 %s', $file), | |
sprintf('chmod -R g+s %s', $file), | |
sprintf('chown -R www-data:www-data %s', $file), | |
]; | |
}, | |
], | |
]; |
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
<?php | |
return [ | |
'scm' => 'git', | |
'repository' => '<repository_name>', | |
'username' => '<username>', | |
'password' => '<password>' | |
// Whether your SCM should do a "shallow" clone of the repository | |
// or not – this means a clone with just the latest state of your | |
// application (no history) | |
// If you're having problems cloning, try setting this to false | |
'shallow' => false, | |
// Recursively pull in submodules. Works only with GIT. | |
'submodules' => false, | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment