2018-10-30 16:31:16 +01:00
|
|
|
##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-->
|
2019-07-02 14:18:02 +02:00
|
|
|
#choose properties based on environment
|
2019-01-23 10:06:16 +01:00
|
|
|
# cp beta-properties.json ../src/assets/env-properties.json;
|
2019-07-02 14:18:02 +02:00
|
|
|
# cp production-properties.json ../src/assets/env-properties.json;
|
|
|
|
|
|
|
|
|
|
|
|
# echo -n 'Check that you have the correct properties file';
|
|
|
|
# echo -n "Press key:";
|
|
|
|
# read -n1 ans
|
|
|
|
# pico ../src/assets/env-properties.json;
|
2019-10-10 17:17:43 +02:00
|
|
|
# printf '\nCheck the properties file version';
|
|
|
|
# echo -n "Press key:";
|
|
|
|
# read -n1 ans
|
|
|
|
# pico ../src/app/openaireLibrary/utils/properties/environment-specific.service.ts;
|
|
|
|
# printf '\n\nUpdate css/ js files version!';
|
|
|
|
# echo -n "Press key:";
|
|
|
|
# read -n1 ans
|
|
|
|
# echo -n "Pressed";
|
|
|
|
# pico ../src/index.html;
|
2019-08-30 16:51:17 +02:00
|
|
|
# echo -n 'Check Robots.txt: always add "Diasallow /"';
|
2019-07-02 14:18:02 +02:00
|
|
|
# echo -n "Press key:";
|
|
|
|
# read -n1 ans
|
|
|
|
# echo -n "Pressed";
|
|
|
|
# pico ../src/robots.txt;
|
|
|
|
# rm -rf ../src/assets/common-assets/.svn/;
|
|
|
|
# rm -rf ../src/app/openaireLibrary/.svn/;
|
2019-08-01 12:55:58 +02:00
|
|
|
# rm -rf ../src/assets/connect-assets/.svn/
|
2018-10-30 16:31:16 +01:00
|
|
|
# npm run build;
|
|
|
|
# echo 'Ready!';
|
2019-06-03 11:39:49 +02:00
|
|
|
# echo 'Now copy only "dist" to the server!'
|
2018-10-30 16:31:16 +01:00
|
|
|
##<-- to here
|
|
|
|
|
|
|
|
##copy "deploy-folder/dist" in demo.openaire.eu
|
|
|
|
##coppies of previous deployments exist in "/home/argiro.kokogiannaki/uoa-portal/connect-adminYYYY-MM-DD"
|
|
|
|
##become nodejs user: "sudo su nodejs -s /bin/bash"
|
2019-08-30 16:51:17 +02:00
|
|
|
##protal files exists in "/srv/www/portal-www"
|
|
|
|
##cp files from "cp -r /home/argiro.kokogiannaki/uoa-portal/connect-adminYYYY-MM-DD/* /srv/www/portal-www"
|