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

    [v1] + SSR... How to restart only Server when saving files files in src-ssr

    Framework
    3
    12
    670
    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.
    • F
      folami @s.molinari last edited by folami

      This post is deleted!
      1 Reply Last reply Reply Quote 0
      • F
        folami last edited by

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • F
          folami @s.molinari last edited by

          @s-molinari I have not altered anything…I just run: quasar dev -m ssr
          But if i modify any file from .src-ssr/ i have to restart by doin ctrl+c and run: quasar dev -m ssr in terminal again to make effect of the change

          1 Reply Last reply Reply Quote 0
          • s.molinari
            s.molinari last edited by

            What is it you are altering in .src-ssr? I don’t think those files are considered part of the dev environment, since it is the node server (express) being created in that folder. It’s all new to me too, to be honest.

            Scott

            F 1 Reply Last reply Reply Quote 0
            • F
              folami @s.molinari last edited by

              @s-molinari
              Well my app requires that i create some APIs from backend to serve data to the front end e.g getting users from mongodb and registering users to the database.
              all these happen from backend and I would connect to any of this APIs through axios from client side(.vue files)
              but whenever i work on those APIs, I have to manually restart the dev Server all over again to effect the changes i made to the APIs

              1 Reply Last reply Reply Quote 0
              • s.molinari
                s.molinari last edited by

                Ah. Ok. I’d create a separate backend server project (also with it’s own nodemon) and run it all over a different terminal.

                Scott

                F 1 Reply Last reply Reply Quote 0
                • F
                  folami @s.molinari last edited by folami

                  @s-molinari said in [v1] + SSR... How to restart only Server when saving files files in src-ssr:

                  Ah. Ok. I’d create a separate backend server project (also with it’s own nodemon) and run it all over a different terminal.

                  Scott

                  This is why I’m using Quasar SSR in the first place…😡 😡
                  to have both server and client in one app…this issue is simply solved in NuxtJs with nodemon

                  1 Reply Last reply Reply Quote 0
                  • s.molinari
                    s.molinari last edited by

                    Can you refer me to the docs of Nuxt, where an API server can also be implemented inside of Nuxt? I’m not aware of this possibility and would like to learn how they do it.

                    If someone else with more experience can also help folami, I would be greatly thankful.

                    Scott

                    1 Reply Last reply Reply Quote 0
                    • rstoenescu
                      rstoenescu Admin last edited by

                      The /src-ssr/extension.js file was being monitored, but there was a deep bug hindering running the “updated” version whenever you change the file.

                      Fixed it and furthermore (for completeness) Quasar will now watch the entire src-ssr folder for changes – because your src-ssr/extension.js might import some other files in that folder.

                      Fix will be available in @quasar/app v1.0.0-beta.16. Logged a bug for this: https://github.com/quasarframework/quasar/issues/3845

                      1 Reply Last reply Reply Quote 1
                      • F
                        folami last edited by

                        thanks so much for your response…

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