* deploy config updated to deployer v4

* auto redirect to /kanban on page load
* priority separator implemented
* auto version reloader initial implementation
This commit is contained in:
Dávid Danyi
2017-08-23 19:06:55 +02:00
parent 935af4c533
commit f51b8090aa
12 changed files with 136 additions and 9 deletions

View File

@@ -16,7 +16,7 @@ set('keep_releases', 3);
set('default_stage', 'production');
// Servers
server('vasgyuro', 'vasgyuro.tsp')
host('vasgyuro.tsp')
->stage('production')
->user('edvidan')
->forwardAgent()
@@ -40,6 +40,11 @@ task('deploy:ng-upload', function() {
run("rm -f {{release_path}}/dist.tar.xz");
runLocally("rm -rf dist.tar.xz dist");
upload("htaccess", "{{release_path}}/dist/.htaccess");
$revision = get("release_name");
within('{{release_path}}', function () use ($revision){
run("echo $revision > dist/revision.json");
});
});
desc('Deploy your project');