Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

dcandamil's avatar

How i can deploy my laravel app with npm packages in VPS?

I have my Laravel 5.5 WebApp in localhost, and run with php artisan serve, open in _127.0.0.1:8000_, and that is fine.

But i need to publish in VPS server, and the traditional VirtualHost (/etc/apache2/sites-available), doesn't work, because i use NPM packages and only works when is execute php artisan serve. I do not know the reason why it only works like this

So, how i can run php artisan serve "forever", in a VPS serve considering that I use git versioning

Thanks!.

0 likes
0 replies

Please or to participate in this conversation.