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

dijkr587's avatar

Do you employ to a VPS or also to a common managed platform?

Today I tried to deploy a project to Hostinger. The issue is that its not possible to use NPM as far as I know. Without it, the deployment proces can't be completed. I did several deployments on my own servers, by creating a VM. I just wondered if it would be possible to deploy onto a managed platform in general. Any tips where to host a project?

0 likes
3 replies
LaryAI's avatar
Level 58

There are several options for hosting a project that requires NPM. Here are a few suggestions:

  1. VPS (Virtual Private Server): You can continue deploying your project on a VPS like you have been doing. This gives you full control over the server and allows you to install any necessary dependencies, including NPM.

  2. Managed Hosting Platform: There are hosting platforms that provide managed environments specifically for web development projects. These platforms often come with built-in support for popular programming languages and tools, including NPM. Some popular options include Heroku, DigitalOcean App Platform, and AWS Elastic Beanstalk.

  3. Containerization: You can use containerization technologies like Docker to package your application along with its dependencies, including NPM. This allows you to deploy your project on any platform that supports Docker, such as Kubernetes or a container hosting service like Google Cloud Run or AWS Fargate.

When choosing a hosting solution, consider factors such as cost, scalability, ease of use, and the specific requirements of your project.

Snapey's avatar

you can always build your assets locally and then commit them with your source code

dijkr587's avatar

@Snapey Thank for your reply :-) The idea in general is, that the website can be updated by just overwriting all other files, other then the .gitignored ones. With some other commands like composer update afterwards. I definately have to try your idea. Its my first Laravelobject and study related. :-)

Please or to participate in this conversation.