Created
September 17, 2016 03:02
-
-
Save heyost/ab95bbe05228990b3d100c8e9625479b to your computer and use it in GitHub Desktop.
simple php server, like "php artisan serve"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# simple php server, like "php artisan serve" | |
# put this file 1 folder behind root directory | |
# e.g. this file on folder "project" | |
# and inside "project" folder have 1 folder contain codeigniter project, | |
# so root folder is name of folder with contain project | |
echo "Type root directory, followed by [ENTER]:" | |
read root | |
php -S 0.0.0.0:8000 -t $root |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment