aboutsummaryrefslogblamecommitdiffhomepage
path: root/scripts/run_servers.sh
blob: 83768178c0bec9346dc4d606ce1e46d0daf26a3a (plain) (tree)
1
2
3
4
5
6
7

           




                                                                  




                                                  
#!/bin/bash

if [ ! -f server.js ]; then
  echo "The script has to be executed at the root of the project."
  exit -1
fi

NODE_ENV=test NODE_APP_INSTANCE=1 node server.js &
sleep 1
NODE_ENV=test NODE_APP_INSTANCE=2 node server.js &
sleep 1
NODE_ENV=test NODE_APP_INSTANCE=3 node server.js &