forked from mozfr/transvision
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart.sh
executable file
·25 lines (21 loc) · 857 Bytes
/
start.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#! /usr/bin/env bash
# Use 'start.sh -remote' if you want to access the server from another machine (or a VM)
SERVER="localhost:8082"
if [ $# -gt 0 ]
then
if [ $1 = '-remote' ]
then
SERVER="0.0.0.0:8082"
elif [ $1 = '-help' ]
then
echo "Usage: start.sh (PHP web server will be listening to localhost:8082)"
echo "Usage: start.sh -remote (PHP web server will be listening to 0.0.0.0:8082 and accessible from the outside)"
echo "Additional parameters will be ignored."
exit 1
else
echo "Unknown parameter \`${1}\`. Type \`start.sh -help\` to know what the valid parameters are."
fi
fi
./app/scripts/dev-setup.sh
echo -e $(tput setaf 2; tput bold)"Launching PHP development server (php -S ${SERVER} -t web/ app/inc/router.php)"$(tput sgr0)
php -S ${SERVER} -t web/ app/inc/router.php