How to clone using the https link

I am trying to clone my App and database on the production server with only command line linux.

I tried to do a git clone hxxps://***** (the link from the published tab).

however, it gave me an error :

[ec2-user@ip-xxx-xx-x-xxx ~]$ git clone hxxps://anvil.works/build#clone:V77xxxxxxxx=O
TPG4YQLATCOXxxxxxxxx
Cloning into ‘V77xxxxxxxx=OTPG4YQLATCOXxxxxxxx’…
fatal: unable to update url base from redirection:
asked for: hxxps://anvil.works/build#clone:V77xxxxxxxxx=OTPG4YQLATCOXxxxxxxx/inf
o/refs?service=git-upload-pack
redirect: Anvil | Login

can i check what is wrong, or, how can i use the clone https link to replicate the database and the codes onto my production target. Thanks.

That’s not the right link for doing a git clone. That’s the link for doing a clone within the Anvil IDE in the browser.

See the git instructions here (or here for the Beta editor). The link starts with ssh:// rather than https://.

Note that this will only replicate your code, however, not the database. If you want to clone both, just click the (https) clone link and open it in your browser, then follow the dialogs: Anvil Docs | Cloning Apps

p.s. Welcome to the forum!

1 Like