DEV Community

Discussion on: Nuxt.js v2.4.0 is out! TypeScript, Smart prefetching and more...

Collapse
 
vicoerv profile image
Vico

i have ongoing project that use Nuxt.js, but i have problem on deployment. Because in 1 vps i have multiple project, and i must run nuxt program one by one, and each port i must register into apache2 for reverse proxy, do you have alternative to this problem?

Collapse
 
sergdeadelantado profile image
Serg de Adelantado • Edited

I suggest you to use Nginx as reverse proxy and add some util for config automation to your CI pipeline. For example, there are nginx-config-builder and nginx-conf, both allows to create and edit nginx configs. Unfortunetly, I didn't found an alternative for Apache, however since Apache uses xml-powered configs, it should be easy to write your own. You also may use Docker to simplify a deployment process for your projects.

Collapse
 
vicoerv profile image
Vico • Edited

thank you for your help, I will check it out

Collapse
 
vicoerv profile image
Vico

help