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

    How to pass flags to the start script

    Help
    4
    4
    748
    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.
    • kjetilge
      kjetilge last edited by

      When deploing to zeit.co using now I need to pass the –auth flag to the start script. The problem is, I can’t seem to find a “start” script in package.json. Right now I deploy to now like this:

      yarn quasar build -m pwa -t ios && cd dist/pwa-ios/ && now && now alias $(pbpaste) tap.car --auth -e SERVE_USER=username -e SERVE_PASSWORD=password
      

      It deploys ok but I get no authentication b/c I need to pass the the --auth flag like described here (at the bottom) https://github.com/zeit/serve/pull/49

      Anyone knows what to do ?

      1 Reply Last reply Reply Quote 0
      • A
        Alinex last edited by

        Within the readme it states that you may do this like:

        SERVE_USER=leo SERVE_PASSWORD=1234 serve --auth
        

        Do this within the dist/spa-mat folder or give the folder as parameter. This should work.

        1 Reply Last reply Reply Quote 0
        • a47ae
          a47ae last edited by

          I think this is not possible due to --auth not working on static deploys.
          The start script is used in projects where they use express.js or similar software to start and serve the application.

          But we are currently working on an deployment guide for Quasar SPAs/PWAs so maybe this will help

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

            Just add whatever “scripts” you want in package.json.

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