So locally I run "php artisan serve" which starts the development server. But how would I do this on production? I basically use laravel as the backend for a node.js app. I looked and found this: https://laravel.com/docs/5.7/deployment but it doesnt really say how to start the laravel app.
Any help would be highly welcomed
Firstly , can you please tell me which hosting server you have ? because some hosting providers don't have ssh access.
On Production you can run same command "php artisan serve" just open ssh terminal and go to website-folder/public_html and type same as locally.
I also suggest you to follow this article steps if you face any problem to deploy your Laravel application.
The serve command is just for a simple dev server, for production it's not even close to being reliable. Depending on your host, you might already have apache/nginx, or might have to set it up from scratch.
Also, Laravel Forge is always a good option.
Well to explain it further, I have a git projects with 2 directories.
I am no expert in backend configuration so was wondering how could i do the following:
Sign in to participate in this thread!