[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/alainyog/JavaScript.com/master/setup.sh [Back]  [Original]

# How do we only run this if the javascriptcom database doesn't exist?

if psql javascriptcom -c '\q' 2>&1
then
  # The database exists
  echo "javascriptcom database already loaded"
else
  createdb javascriptcom
  ./node_modules/node-pg-migrate/bin/pg-migrate up
fi

echo "installing bower assets"
npm run bower install

echo "compiling assets"
npm run gulp build

Web Proxy Viewer  |  New URL  |  Original Page