SCP File from local to Heroku Server

后端 未结 5 578
温柔的废话
温柔的废话 2021-02-07 08:41

I\'d like to copy my config.yml file from my local django app directory to my heroku server, but I\'m not sure how to get the user@host.com format for heroku.

I\'ve tri

5条回答
  •  无人共我
    2021-02-07 08:57

    As @tamas7 said it's firewalled, but your local machine is probably also firewalled. So unless you have a private server with SSH accessible from the Internet, you won't be able to scp.

    I'm personally using transfer.sh free and open source service.

    Upload your config.yml to it:

    $ curl --upload-file ./config.yml https://transfer.sh/
    https://transfer.sh/66nb8/config.yml
    

    Then download it back from wherever you want:

    $ wget https://transfer.sh/66nb8/config.yml
    

提交回复
热议问题