1
|
##ATTENTION
|
2
|
##DON'T run it in svn folder - it *REMOVES* files
|
3
|
##Copy project in another file "deploy-folder"
|
4
|
##cd "deploy-folder"
|
5
|
##run the script
|
6
|
|
7
|
## uncommect from here-->
|
8
|
# cp connect-admin-beta-properties.json ./src/assets/env-properties.json;
|
9
|
# pico src/app/openaireLibrary/utils/properties/environment-specific.service.ts;
|
10
|
# npm run build;
|
11
|
# rm -rf dist/assets/common-assets/.svn/;
|
12
|
# echo 'Ready!';
|
13
|
# echo 'Now copy dist to the server!'
|
14
|
##<-- to here
|
15
|
|
16
|
##copy "deploy-folder/dist" in demo.openaire.eu
|
17
|
##coppies of previous deployments exist in "/home/argiro.kokogiannaki/uoa-portal/connect-adminYYYY-MM-DD"
|
18
|
##become nodejs user: "sudo su nodejs -s /bin/bash"
|
19
|
##go to "cd /srv/www/portal-www"
|
20
|
##cp files from "cp -r HOME_PATH/deploy-folder/* ."
|