21 lines
742 B
Bash
Executable File
21 lines
742 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 production-properties.json ../src/assets/env-properties.json;
|
|
# pico ../src/app/openaireLibrary/utils/properties/environment-specific.service.ts;
|
|
# npm run build;
|
|
# rm -rf ../dist/assets/common-assets/.svn/;
|
|
# echo 'Ready!';
|
|
# echo 'Now copy dist to the server!'
|
|
##<-- to here
|
|
|
|
##copy "deploy-folder/dist" in explore.openaire.eu
|
|
##coppies of previous deployments exist in "/home/argiro.kokogiannaki/portals/adminYYYY-MM-DD"
|
|
##become nodejs user: "sudo su nodejs -s /bin/bash"
|
|
##go to "cd /srv/www/portal-www"
|
|
##cp files from "cp -r HOME_PATH/deploy-folder/* ."
|