Created
November 25, 2019 11:46
-
-
Save mahedi2014/1a43179bf40758a039a5eb818f7602c0 to your computer and use it in GitHub Desktop.
How to run laravel artisan serve in host
This file contains hidden or 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
#Command to start serve and continue in backend: | |
1. Open terminal and run: php artisan serve --host 192.168.78.10 --port 5000 & | |
2. To exit from terminal: exit | |
##Stop artisan server from backend | |
1. Go to project directory by (project is in linux server on "my_project" directory): cd ../var/www/my_project | |
2. To show running server process: ps -ef | grep "$PWD/server.php" | |
Result is as: | |
[root@mahedi my_project]# root 6817 6813 0 17:14 ? 00:00:00 /usr/bin/php -S 192.168.78.10:5000 /var/www/my_project/server.php | |
bash: root: command not found... | |
[root@mahedi my_project]# root 7032 6973 0 17:17 pts/2 00:00:00 grep --color=auto /var/www/my_project/server.php | |
3. To stop the process 6817 run command: kill 6817 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment