SolidScribe/startDevServerAndClient.sh

11 lines
316 B
Bash
Raw Normal View History

#!/bin/bash
echo 'Make sure this is being run from root folder of project'
echo 'Starting API server (/api), watching for file changes...'
pm2 start server/index.js --watch
echo 'Starting Client webpack dev server (/app), in a screen, watching for file changes...'
screen -dm bash -c "cd client/; npm run watch"