25 lines
906 B
Bash
Executable File
25 lines
906 B
Bash
Executable File
#ATTENTION
|
|
#DON'T run it in svn folder - it REMOVES files
|
|
#Copy project in another file "deploy-folder"
|
|
#cd "deploy-folder"
|
|
#run the script
|
|
|
|
## uncommect from here-->
|
|
# cp explore-production-properties.json src/assets/env-properties.json;
|
|
# rm -rf src/assets/common-assets/.svn/;
|
|
# rm -rf src/app/openaireLibrary/.svn/;
|
|
# pico src/app/openaireLibrary/utils/properties/environment-specific.service.ts;
|
|
# npm run build:dynamic;
|
|
# rm -rf src node_modules .idea/ connect-production-properties.json installOpenaireLib.sh;
|
|
# echo 'Ready!';
|
|
# echo 'Now copy to the server!'
|
|
##<-- to here
|
|
|
|
#copy "deploy-folder" in explore.openaire.eu
|
|
#coppies of previous deployments exist in "/home/argiro.kokogiannaki/portals/explore-YYYYMMDD"
|
|
#run "npm i"
|
|
#become nodejs user: "sudo su nodejs -s /bin/bash"
|
|
#go to "cd /srv/www/portal"
|
|
#cp files from "cp -r HOME_PATH/deploy-folder/* ."
|
|
#restart portal "pm2 restart openaire"
|