-
Notifications
You must be signed in to change notification settings - Fork 2
/
p3-api-setup
43 lines (30 loc) · 1.04 KB
/
p3-api-setup
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# requirement: redis server
# install node v6.x LTS
# git clone --recursive https://github.com/PATRIC3/p3_api.git
# npm install
# config p3api.conf (use p3api.conf.sample as a template)
# forever start bin/p3api-server // starting app
Configuration of p3-api on beech.
Installing redis from yum (vers 2.4.10-1.el6)
Update /etc/redis.conf:
comment out the bind statement to ensure redis listens on all ports
set working directory to /disks/p3/redis
starting via standard startup scripts
/sbin/chkconfig redis on
Needed libmpc installed from yum
To update from git:
login to beech
sudo to p3
cd /disks/p3/web_services/dev_container
. user-env.sh
cd modules/p3_api_service
If the module was already deployed and you need to pull an upstream update:
cd p3_api
git pull
cd ..
make
cd /disks/p3/web_services/dev_container
perl auto-deploy deploy.cfg --module p3_api_service
then restart services:
/disks/p3/web_services/deployment/services/p3_api_service/stop_service
/disks/p3/web_services/deployment/services/p3_api_service/start_service