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
|
## cp the file according to the deploy environment
|
8
|
|
9
|
# cp production-properties.json ../src/assets/env-properties.json;
|
10
|
# cp test-properties.json ../src/assets/env-properties.json;
|
11
|
# cp beta-properties.json ../src/assets/env-properties.json;
|
12
|
|
13
|
## uncommect from here-->
|
14
|
# echo -n 'Check properties service to have the url for the deployment environment!!';
|
15
|
# echo -n "Press key:";
|
16
|
# read -n1 ans
|
17
|
# echo -n "Pressed";
|
18
|
# pico ../src/app/openaireLibrary/utils/properties/environment-specific.service.ts;
|
19
|
# echo 'For Production keep meta for bots';
|
20
|
# echo -n 'Check index.html: For test keep meta for noindex, for production remove noindex and keep meta for Search engines verification';
|
21
|
# echo -n "Press key:";
|
22
|
# read -n1 ans
|
23
|
# echo -n "Pressed";
|
24
|
# pico ../src/index.html;
|
25
|
# echo -n 'Check Robots.txt: For test and beta add "Diasallow /", for production remove it!';
|
26
|
# echo -n "Press key:";
|
27
|
# read -n1 ans
|
28
|
# echo -n "Pressed";
|
29
|
# pico ../src/robots.txt;
|
30
|
# rm -rf ../src/assets/common-assets/.svn/;
|
31
|
# rm -rf ../src/app/openaireLibrary/.svn/;
|
32
|
# echo 'Run "cd ..; npm run build:dynamic; cd deploy;" ';
|
33
|
# echo 'Then run prepary deploy script';
|
34
|
##<-- to here
|