Skip to content

Instantly share code, notes, and snippets.

@ds0nt
Created June 11, 2015 19:45
Show Gist options
  • Save ds0nt/e4e1e72fbf12d369ae98 to your computer and use it in GitHub Desktop.
Save ds0nt/e4e1e72fbf12d369ae98 to your computer and use it in GitHub Desktop.
#!/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