##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 beta-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 only "dist" to the server!' ##<-- 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" ##go to "cd /srv/www/portal-www" ##cp files from "cp -r HOME_PATH/deploy-folder/* ."