Deploy Quasar SSR in digital ocean
-
Hello , I am trying to deploy quasar in digital ocean , with NGINX .
It is deploy SPA , but it is not deploying SSR .with SPA I make this command -
quasar build
AND in NGINX , in /etc/nginx/sites-enabled/default
it is like this -
root /var/www/front/dist/spa;
( it works )
in SSR , I make this command -
quasar build -m ssr
AND in NGINX , in /etc/nginx/sites-enabled/default
it is like this -
root /var/www/front/dist/ssr;
( nginx dont find ) / dont work
I dont know what I am doing wrong . -
Its , giving the error - 403 Forbidden
-
@murilolivorato Do you realize that you’re trying to serve the ssr folder statically.
It doesn’t work like that, the app in ssr folder need to be started like any other nodejs app first then goto nginx -
@suleiman_as ,I have been trying for 3 days .
After run the command on the server -
quasar build -m ssr
do I need to run the command -
npm run start
?
Thanks -
inside /var/www/front/dist/ssr
run
npm install
npm run start -
Yes , it worked now . thanks = )