Revision 52604
Added by Argiro Kokogiannaki over 6 years ago
prepareDeploy.sh | ||
---|---|---|
1 |
cp connect-production-properties.json src/assets/env-properties.json; |
|
2 |
rm -rf src/assets/common-assets/.svn/; |
|
3 |
rm -rf src/app/openaireLibrary/.svn/; |
|
4 |
pico src/app/openaireLibrary/utils/properties/environment-specific.service.ts; |
|
5 |
npm run build:dynamic; |
|
6 |
rm -rf src node_modules .idea/ connect-production-properties.json installOpenaireLib.sh; |
|
7 |
echo 'Ready!'; |
|
8 |
echo 'Now copy dist to the server!' |
|
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-production-properties.json src/assets/env-properties.json; |
|
9 |
# rm -rf src/assets/common-assets/.svn/; |
|
10 |
# rm -rf src/app/openaireLibrary/.svn/; |
|
11 |
# pico src/app/openaireLibrary/utils/properties/environment-specific.service.ts; |
|
12 |
# npm run build:dynamic; |
|
13 |
# rm -rf src node_modules .idea/ connect-production-properties.json installOpenaireLib.sh; |
|
14 |
# echo 'Ready!'; |
|
15 |
# echo 'Now copy to the server!' |
|
16 |
##<-- to here |
|
17 |
|
|
18 |
##copy "deploy-folder" in beta.connect.openaire.eu |
|
19 |
##coppies of previous deployments exist in "/home/argiro.kokogiannaki/connect-portal/connectYYYY-MM-DD" |
|
20 |
##run "npm i" |
|
21 |
##become nodejs user: "sudo su nodejs -s /bin/bash" |
|
22 |
##go to "cd /srv/www/portal" |
|
23 |
##cp files from "cp -r HOME_PATH/deploy-folder/* ." |
|
24 |
##restart portal "pm2 restart connect" |
Also available in: Unified diff
Detailed instructions for deployment, add content folder and modules