No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Deploy Quasar SSR in digital ocean

    Help
    2
    6
    626
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      murilolivorato last edited by

      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 .

      MYLOG.jpg

      1 Reply Last reply Reply Quote 0
      • M
        murilolivorato last edited by

        Its , giving the error - 403 Forbidden

        S 1 Reply Last reply Reply Quote 0
        • S
          suleiman_as @murilolivorato last edited by

          @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

          https://quasar.dev/quasar-cli/developing-ssr/deploying

          1 Reply Last reply Reply Quote 0
          • M
            murilolivorato last edited by

            @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

            1 Reply Last reply Reply Quote 0
            • S
              suleiman_as last edited by

              inside /var/www/front/dist/ssr
              run
              npm install
              npm run start

              1 Reply Last reply Reply Quote 0
              • M
                murilolivorato last edited by

                Yes , it worked now . thanks = )

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post