Reputation: 51
I am using Laravel for RestApi and use Angularjs for front-end. I successfully build application in my system and deploy project to DigitalOcean Ubuntu VPS. When I serve a Laravel development server using php artisan serve command it start http://localhost:8000
server the api works fine if I turn off putty(use as DigitalOcean client) the Api not working. This is use for development environment but now project running on VPS and RestAPI not working. Please suggest me that how I use Laravel RestAPI in VPS without php artisan serve command.
Upvotes: 1
Views: 4143
Reputation: 442
Check this article with the title "How To Install Laravel with Nginx on an Ubuntu 12.04 LTS VPS". That article should help you getting REST API working without PHP artisan serve
.
Basically, php artisan serve
is used to run PHP's built-in web server. When you are already using nginx, you don't need to run PHP's built-in web server. So, you won't need to run php artisan serve
.
Upvotes: 0