SCP File from local to Heroku Server

后端 未结 5 583
温柔的废话
温柔的废话 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 09:09

    According to http://www.evans.io/posts/heroku-survival-guide/ incoming connections are firewalled off. In this case you need to approach your local machine from the Heroku server.

    heroku run bash
    scp user@mylocalmachine:/home/user/dir/file.txt .
    

提交回复
热议问题