Navigation

    APPDRAG Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular

    REMINDER

    Please be respectful of all AppDragers! Keep it really civil so that we can make the AppDrag community of builders as embracing, positive and inspiring as possible.

    Upload site

    General Discussion
    3
    10
    487
    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.
    • Dick Honing
      Dick Honing last edited by

      How can I upload a whole site to AppDrag?

      1 Reply Last reply Reply Quote 0
      • Dick Honing
        Dick Honing last edited by

        already found it ... ctrl click on the root folder in code editor ...Screenshot 2020-10-23 at 10.50.01.png
        and drag and drop files and folders ... 🙂

        1 Reply Last reply Reply Quote 1
        • Joseph Benguira
          Joseph Benguira last edited by

          indeed!

          FYI it's also possible to do that with our CLI tool, it's convenient if you have a build process and want to upload the builded result:
          https://www.npmjs.com/package/appdrag

          1 Reply Last reply Reply Quote 2
          • Dick Honing
            Dick Honing last edited by

            @Joseph-Benguira thanks for the tip! And uh ... perhaps a stupid question, but where do these files get downloaded to? ... or did I forget a parameter?

            Config file successfully written, you won't need to specify your appID when pushing from this directory.
            dick:~ dick$ appdrag fs pull CloudBackend 
            dick:~ dick$
            
            1 Reply Last reply Reply Quote 0
            • Joseph Benguira
              Joseph Benguira last edited by Joseph Benguira

              Hey Dick,

              please check our documentation here for more details:
              https://www.npmjs.com/package/appdrag

              there is a "Usage examples" section in the doc with few examples

              1 Reply Last reply Reply Quote 0
              • Dick Honing
                Dick Honing last edited by

                @Joseph-Benguira I read this, but it does not tell where the 'pulled' files end up in ... or am I overlooking something?

                1 Reply Last reply Reply Quote 0
                • Dick Honing
                  Dick Honing last edited by

                  @Joseph-Benguira some additional information:

                  dick:~ dick$ appdrag fs pull preview
                  Forbidden
                  Forbidden
                  Forbidden
                  Forbidden
                  Forbidden
                  Forbidden
                  done writing : index.html
                  Forbidden
                  Forbidden
                  dick:~ dick$
                  

                  Where does the index.html go? And why are the other files forbidden?

                  Screenshot 2020-11-26 at 09.13.09.png

                  1 Reply Last reply Reply Quote 0
                  • Daniel Mulroy
                    Daniel Mulroy last edited by

                    Hi Dick,

                    In general, command line tools pull things into what's called the current working directory (cwd).

                    If you want to find out what directory you're in, you can enter the command "pwd" (print working directory).

                    From your screenshot you'll find the files in your user home folder though 🙂

                    In the future, you'll probably want to navigate to a folder created for a particular project before running the appdrag commands.

                    1 Reply Last reply Reply Quote 0
                    • Dick Honing
                      Dick Honing last edited by

                      @Daniel-Mulroy Thanks!

                      1 Reply Last reply Reply Quote 0
                      • Dick Honing
                        Dick Honing last edited by

                        @Joseph-Benguira any idea what may cause the 'Forbidden' and files ending up to be 0 kb?

                        Screenshot 2020-11-26 at 23.29.09.png

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