Skip to content

Commit 26dcae4

Browse files
committed
(refactor) Grunt default task launches server and opens page in browser.
1 parent ae3cbaa commit 26dcae4

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

start.sh

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -67,24 +67,14 @@ fi
6767

6868
echo
6969
echo "Installing dependencies."
70+
echo
7071
npm install
7172
echo
7273

7374
echo
74-
echo "Bundling components."
75-
node -e "require('grunt').tasks(['build']);"
76-
killall node
75+
echo "Bundling components and launching."
76+
echo
77+
node -e "require('grunt').tasks(['default']);"
7778
echo
78-
79-
printf "Launching application and starting server"
80-
81-
PYTHON_INSTALLED=$(program_is_installed python)
82-
83-
if [ "$PYTHON_INSTALLED" == 0 ]; then
84-
printf "Please open http://localhost:3000 in your favorite browser"
85-
node ./bin/www
86-
else
87-
node ./bin/www & python -mwebbrowser http://localhost:3000
88-
fi
8979

9080
exit

0 commit comments

Comments
 (0)