DEV Community

Discussion on: Deploy ReactJS Production Build with PM2

Collapse
navizdev profile image
Juan Silupu Maza • Edited on

it necessarily has to be on that route /var/www/myReactApp?

Collapse
taufiqtab profile image
Taufiq Abdullah Author

you can put it outside the /var/www....
as long as the app start with the spesific port (example : 3000) then you can make ProxyReverse with Apache or Nginx

Collapse
manuelhpineda_87 profile image
Manuel Pineda

I have ran a NodeJs app using pm2 and I have it on another directory but I use nginx as a proxy.