Support the ongoing development of Laravel.io →
posted 5 years ago
Last updated 2 years ago.
0

Hello ,

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.

https://www.cloudways.com/blog/install-features-laravel-5-7/

Last updated 5 years ago.
0

Hi,

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.

Best,

0

Well to explain it further, I have a git projects with 2 directories.

  1. Frontend - a node app that I deploy with pm2 and route through nginx to the correct port
  2. api - which is the laravel app.

I am no expert in backend configuration so was wondering how could i do the following:

  1. start the laravel app? do i just have to copy the contents to my nginx server sites-available directory?
  2. tell nginx to route to the laravel app? so preferably I do not want to copy the laravel contents to the sites-available but instead point it to my api/ directory.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.