forked from ExchangeBC/devex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dev.sh
executable file
·34 lines (29 loc) · 1.04 KB
/
dev.sh
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
#!/bin/bash
docker stop db_devex
docker start db_devex
docker stop mean_devex
docker run \
-p 3030:3000 \
-p 5858:5858 \
-p 35729:35729 \
-v `pwd`/config:/opt/mean.js/config \
-v `pwd`/modules:/opt/mean.js/modules \
-v `pwd`/public:/opt/mean.js/public \
-v `pwd`/uploads:/opt/mean.js/uploads \
-e "MAILER_SERVICE_PROVIDER=gggmail" \
-e "MAILER_FROM=<Email>" \
-e "MAILER_EMAIL_ID=<Email>" \
-e "MAILER_PASSWORD=<Password>" \
-e "NODE_ENV=${NODE_ENV-development}" \
-e "MONGO_SEED=${MONGO_SEED-true}" \
-e "DISABLE_WATCH=${DISABLE_WATCH-}" \
-e "GITHUB_ID=3d819dee8be7237af9ee" \
-e "GITHUB_SECRET=e3f26152b2d04e7877e1a57a07ea1d6bab63da18" \
-e "FEATURES=localmachine-swu" \
-ti --rm --link db_devex --name mean_devex mean/devex ${@:-bash}
# after run sh dev.sh
# and run MAILER_SERVICE_PROVIDER="gmail" MAILER_FROM="<email>" MAILER_EMAIL_ID="<email>" MAILER_PASSWORD="<password>" NODE_ENV=development nodejs
# -v `pwd`:/opt/mean.js \
# -ti --rm --link db_devex mean/devex bash
# user FT9uq4nbk8mxJdBEx67rGqAHSC9RYBd
# admin dwJ2y1VFHhFUZdwCknys9C2BF4vD2tJgEQRe7p9