Project

General

Profile

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"
(5-5/10)