Skip to content
This repository has been archived by the owner on Nov 20, 2022. It is now read-only.

Commit

Permalink
added script to start fe or be depending on the env variable set
Browse files Browse the repository at this point in the history
  • Loading branch information
BogdanLivadariu committed Apr 11, 2017
1 parent 11e183b commit 0a65a26
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
3 changes: 1 addition & 2 deletions Procfile
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
web: cd backend && npm start
server: cd frontend && ./node_modules/aurelia-cli/bin/aurelia-cli.js build --env dev && node server.js
web: ./start.sh
10 changes: 10 additions & 0 deletions start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh

if [ $GOAL = "FE" ]
then
echo 'Starting FRONTEND'
cd frontend && ./node_modules/aurelia-cli/bin/aurelia-cli.js build --env dev && node server.js
else
echo 'Starting BACKEND'
cd backend && npm start
fi

0 comments on commit 0a65a26

Please sign in to comment.