Services: add properties files and scripts to create separate configuration per environment
parent
b5fc3c8606
commit
e4586e58f2
@ -0,0 +1,25 @@
|
||||
# README #
|
||||
|
||||
|
||||
### What is this repository for? ###
|
||||
|
||||
Cache service
|
||||
|
||||
* Version 1.0.0
|
||||
|
||||
### How to run locally? ###
|
||||
|
||||
* "npm start" to start the service
|
||||
* Check properties to set the port
|
||||
|
||||
### How to run in a server? ###
|
||||
* run "npm run prepare-{CONFIGURATION_NAME}"
|
||||
* cp dist folder in the server
|
||||
* create a folder for the service files
|
||||
* "npm i" to install dependencies.
|
||||
* if you just update the project run "pm2 restart cache"
|
||||
* if you start a new service run: pm2 start --name cache ./cache.js --log-date-format="YYYY-MM-DD HH:mm Z"
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1 @@
|
||||
port = 4000
|
@ -0,0 +1 @@
|
||||
port = 4000
|
@ -0,0 +1 @@
|
||||
port = 3200
|
@ -0,0 +1,24 @@
|
||||
# README #
|
||||
|
||||
|
||||
### What is this repository for? ###
|
||||
|
||||
Utils service
|
||||
|
||||
* Version 1.0.0
|
||||
|
||||
### How to run locally? ###
|
||||
|
||||
* "npm start" to start the service
|
||||
|
||||
### How to run in a server? ###
|
||||
* run "npm run prepare-{CONFIGURATION_NAME}"
|
||||
* cp dist folder in the server
|
||||
* create a folder for the service files
|
||||
* "npm i" to install dependencies.
|
||||
* if you just update the project run "pm2 restart upload"
|
||||
* if you start a new service run: pm2 start --name upload ./uploadService.js --log-date-format="YYYY-MM-DD HH:mm Z"
|
||||
|
||||
|
||||
|
||||
|
@ -1,14 +0,0 @@
|
||||
#uncomment properties file based on deployment environment
|
||||
#mv beta-properties.file properties.file
|
||||
#mv production-properties.file properties.file
|
||||
|
||||
#rm -rf node_modules/ run.sh uploads/ .idea/ beta-properties.file production-properties.file
|
||||
#rm prepareDeploy.sh
|
||||
|
||||
#Copy files to beta.explore.openaire.eu or explore.openaire.eu /home/argiro.kokogiannaki/portals/utils-service.YYYY-MM-DD
|
||||
# run npm i
|
||||
#change to user nodejs " sudo su nodejs -s /bin/bash"
|
||||
#copy files to deploy folder " cp -r /home/argiro.kokogiannaki/portals/utils-service.YYY-MM-DD/* /srv/www/upload/"
|
||||
# restart uplication "pm2 restart upload"
|
||||
|
||||
|
Loading…
Reference in New Issue