* angular updated from 5.2 to 8.0

This commit is contained in:
Danyi Dávid
2019-10-23 16:23:06 +02:00
parent 0e9f2a448a
commit 0d0ed38966
27 changed files with 9779 additions and 8722 deletions

View File

@@ -27,19 +27,20 @@ host('alfheim.ragnarok.yvan.hu')
desc('Prepare release');
task('deploy:ng-prepare', function() {
runLocally("npm run build:ssr");
runLocally("tar -cJf dist.tar.xz dist server.js package.json pm2.json");
runLocally("tar -cJf dist.tar.xz dist package.json pm2.json");
});
desc('Upload release');
task('deploy:ng-upload', function() {
upload("dist.tar.xz", "{{release_path}}/dist.tar.xz");
run("tar -C {{release_path}} -xJf {{release_path}}/dist.tar.xz");
upload("robots.txt", "{{release_path}}/dist/browser/robots.txt");
within("{{release_path}}", function () {
run("npm install --production");
run("npm install express --production");
});
run("rm -f {{release_path}}/dist.tar.xz");
runLocally("rm -rf dist.tar.xz dist dist-ssr");
runLocally("rm -rf dist.tar.xz dist");
});
desc('Start app server');
@@ -47,7 +48,6 @@ task('deploy:pm2-restart', function() {
within("{{release_path}}", function () {
run("pm2 stop --silent gallery-frontend");
run("pm2 delete --silent gallery-frontend");
run("pm2 start pm2.json");
});
});