diff options
| -rw-r--r-- | deploy.php | 41 | ||||
| -rw-r--r-- | public/.htaccess | 5 |
2 files changed, 46 insertions, 0 deletions
diff --git a/deploy.php b/deploy.php new file mode 100644 index 0000000..d2494bc --- /dev/null +++ b/deploy.php @@ -0,0 +1,41 @@ +<?php +namespace Deployer; + +require 'recipe/common.php'; + +set('application', 'bookmarks.davidtsadler.com'); + +set('repository', 'git@git.davidtsadler.com:bookmarks.davidtsadler.com.git'); + +set('git_tty', true); + +set('shared_files', [ + 'config.php', + 'urls', +]); + +set('shared_dirs', []); + +set('writable_dirs', []); + +set('allow_anonymous_stats', false); + +host('davidtsadler.com') + ->set('deploy_path', '/var/www/{{application}}'); + +task('deploy', [ + 'deploy:info', + 'deploy:prepare', + 'deploy:lock', + 'deploy:release', + 'deploy:update_code', + 'deploy:shared', + 'deploy:writable', + 'deploy:clear_paths', + 'deploy:symlink', + 'deploy:unlock', + 'cleanup', + 'success' +]); + +after('deploy:failed', 'deploy:unlock'); diff --git a/public/.htaccess b/public/.htaccess new file mode 100644 index 0000000..f0da25f --- /dev/null +++ b/public/.htaccess @@ -0,0 +1,5 @@ +<IfModule mod_rewrite.c> + # Handle Authorization Header. + RewriteCond %{HTTP:Authorization} . + RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] +</IfModule> |
