rockq-org / austack-core

API, Console, Test of austack
32 stars 8 forks source link

Can not login dave1 #207

Closed hailiang-wang closed 9 years ago

hailiang-wang commented 9 years ago

Description

After fixing #97, get another error. This should be the configuration error.

image

Is it using the development config tag in musa ?

Solution

nihgwu commented 9 years ago

可能是因为我手动 gulp build的缘故?怎么让Jenkins 重新自动stage

hailiang-wang commented 9 years ago

Jenkins 账号

http://jenkins.arrking.com/jenkins

用户名:admin 密码:joifrojQuac4

job: http://jenkins.arrking.com/jenkins/job/update_austack_on_musa/

更新脚本 (1) 进入 configure

(2) 修改脚本

image

hailiang-wang commented 9 years ago

Script Backup.

APP_HOME=/root/git/austack
SERVER=$APP_HOME/server
CLIENT=$APP_HOME/client
export NODE_ENV=production
# pull codes
cd $APP_HOME
git checkout develop .
git pull
npm install
bower install --allow-root
gulp clean
gulp build

echo ">> start server.."
cd $APP_HOME
CIT_ID=`git rev-parse HEAD`

export AUSTACK_DATABASE_URL="mongodb://peter:Be8s2fsisOdWy@115.28.162.221:27088/austackdb"

pm2 restart austack-server
# disable sync to qiniu
# /root/bin/qrsync qiniu_cfg/austack-stg-client.json

MAIL_SUBJECT="[austack-core] build $BUILD_NUMBER @ $BUILD_ID is done."
$MAIL --recipients=e26156efd1b4792215b6c31b5bbdc57f@mail.bearychat.com --subject="$MAIL_SUBJECT" --content="Codes https://github.com/arrking/austack-core/commit/$CIT_ID , Build URL: $BUILD_URL , Service URL: http://console.austack.com"
nihgwu commented 9 years ago

lyman 提交了之后 Jenkins 重启了,现在可以。。