chnage deploy keys
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
b56ca9dd21
commit
c0ae3c28f1
10
deploy.php
10
deploy.php
|
@ -22,7 +22,7 @@ set('allow_anonymous_stats', false);
|
|||
set('use_atomic_symlink', true);
|
||||
|
||||
host('medvid.cc')
|
||||
->user('dmedved')
|
||||
->user('deployer')
|
||||
->set('deploy_path', '/var/www/{{application}}');
|
||||
|
||||
desc('Deploy your project');
|
||||
|
@ -46,13 +46,13 @@ task('deploy', [
|
|||
]);
|
||||
|
||||
task('deploy:add_keys', function () {
|
||||
run('ssh-add ~/.ssh/medvid_cc');
|
||||
run('ssh-add ~/.ssh/deployer_git');
|
||||
});
|
||||
|
||||
task('deploy:ownership', function () {
|
||||
run('chown dmedved:nginx -h /var/www/{{application}}/current');
|
||||
run('chown dmedved:nginx -R /var/www/{{application}}/shared');
|
||||
run('chown dmedved:nginx -R /var/www/{{application}}/releases');
|
||||
run('chown deployer:nginx -h /var/www/{{application}}/current');
|
||||
run('chown deployer:nginx -R /var/www/{{application}}/shared');
|
||||
run('chown deployer:nginx -R /var/www/{{application}}/releases');
|
||||
});
|
||||
|
||||
// [Optional] If deploy fails automatically unlock.
|
||||
|
|
|
@ -908,5 +908,6 @@
|
|||
<script src="/js/jquery.magnific-popup.min.js"></script>
|
||||
<script src="/js/validator.js"></script>
|
||||
<script src="/js/main.js"></script>
|
||||
<!-- dep -->
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in New Issue