Created
June 11, 2015 19:45
-
-
Save ds0nt/e4e1e72fbf12d369ae98 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# production | |
# | |
if [ "$NODE_ENV" = "production" ]; then | |
export PORT=8080; | |
export MONGODB='localhost/test'; | |
export ASSETS='/code/klouds.io/build'; | |
export JWT_KEY='klouds.zombie.ahp0kalyps'; | |
export STRIPE_SK=''; | |
export STRIPE_PK=''; | |
fi; | |
if [ "$1" = "open" ]; then | |
ps -au | grep make && killall -9 make && exit 0; | |
xfce4-terminal --geometry 58x10+100+0 -T "SERVER" --command "./env.sh watch-server" | |
xfce4-terminal --geometry 58x10+700+0 -T "JS" --command "./env.sh watch-js" | |
xfce4-terminal --geometry 58x10+1300+0 -T "CSS" --command "./env.sh watch-css" | |
else | |
export PORT=8080 | |
export MONGODB='localhost/test' | |
export ASSETS='/code/klouds.io/build' | |
export JWT_KEY='klouds' | |
export STRIPE_SK='' | |
export STRIPE_PK='' | |
make "$@" | |
fi; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment