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
#choose properties based on environment
9
# cp beta-properties.json  ../src/assets/env-properties.json;
10
# cp production-properties.json  ../src/assets/env-properties.json;
11

    
12

    
13
# echo -n 'Check that you have the correct properties file';
14
# echo -n "Press key:";
15
# read -n1 ans
16
# pico ../src/assets/env-properties.json;
17
# echo -n 'Check Robots.txt: For test and beta add "Diasallow /", for production remove it!';
18
# echo -n "Press key:";
19
# read -n1 ans
20
# echo -n "Pressed";
21
# pico ../src/robots.txt;
22
# rm -rf ../src/assets/common-assets/.svn/;
23
# rm -rf ../src/app/openaireLibrary/.svn/;
24
# npm run build;
25
# echo 'Ready!';
26
# echo 'Now copy only "dist" to the server!'
27
##<-- to here
28

    
29
##copy "deploy-folder/dist" in demo.openaire.eu
30
##coppies of previous deployments exist in  "/home/argiro.kokogiannaki/uoa-portal/connect-adminYYYY-MM-DD"
31
##become nodejs user: "sudo su nodejs -s /bin/bash"
32
##go to "cd /srv/www/portal-www"
33
##cp files from "cp -r HOME_PATH/deploy-folder/* ."
(2-2/3)