File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed
Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 33environ=$LAIN_DOMAIN
44
55# specify the client id here
6- source . /config
6+ source /lain/app /config
77
88if [ $console_api_scheme == " https" ]; then
99 ws_scheme=" wss" ;
Original file line number Diff line number Diff line change 11#! /bin/bash
22
33# specify the client id, client secret and sso server here
4- source . /config
4+ source /lain/app /config
55
66export SSO_CLIENT_ID=$client_id
77export SSO_CLIENT_SECRET=$client_sec
@@ -18,4 +18,4 @@ export CONSOLE_SENTRY_DSN=$console_sentry_dsn
1818export GITLAB_TOKEN=$gitlab_token
1919
2020mkdir -p /lain/logs
21- exec gunicorn -w 3 -b 0.0.0.0:8000 --preload --error-logfile /lain/logs/error.log --access-logfile /lain/logs/access.log console.wsgi
21+ exec gunicorn -w 3 -b 0.0.0.0:8000 --preload --error-logfile /lain/logs/error.log --access-logfile /lain/logs/access.log --pythonpath /lain/app console.wsgi
Original file line number Diff line number Diff line change 11appname : console
22
33build :
4- base : laincloud/centos-lain:20160503
4+ base : laincloud/centos-lain:20171212
55 prepare :
6- version : " 20170612 "
6+ version : " 20171212 "
77 script :
8+ - mkdir -p /root/.pip
9+ - cp -f pip.conf /root/.pip/pip.conf
810 - yum install -y yum-plugin-ovl
911 - yum install -y gcc-c++
1012 - git clone --depth=1 https://github.com/golang/sys.git $GOPATH/src/golang.org/x/sys
1719 - touch /sbin/modprobe && chmod +x /sbin/modprobe
1820 - pip install -r pip-req.txt
1921 script :
20- - mkdir -p /root/.pip
21- - cp -f pip.conf /root/.pip/pip.conf
2222 - cd $(npm root -g)/npm && npm install fs-extra && sed -i -e s/graceful-fs/fs-extra/ -e s/fs\.rename/fs.move/ ./lib/utils/rename.js # fix npm error
2323 - cd $GOPATH/src/github.com/laincloud/archon && git pull && gobuildweb dist && cp archon-0.1.zip /lain/app/ # note docker may use cache, you should delete the old image
2424 - unzip -o /lain/app/archon-0.1.zip
@@ -32,15 +32,15 @@ test:
3232 - CONSOLE_DEBUG=1 py.test --cov=.
3333
3434web :
35- cmd : . /archon.sh
35+ cmd : /lain/app /archon.sh
3636 port : 9000
3737 memory : 256m
3838 secret_files :
3939 - config
4040 secret_files_bypass : True
4141
4242web.console :
43- cmd : . /entry.sh
43+ cmd : /lain/app /entry.sh
4444 port : 8000
4545 secret_files :
4646 - config
@@ -55,4 +55,4 @@ web.console:
5555 - console_op
5656
5757notify :
58- slack : " #lain"
58+ slack : " #lain"
You can’t perform that action at this time.
0 commit comments