SCP File from local to Heroku Server

user2738206 picture user2738206 · Jan 4, 2015 · Viewed 11.2k times · Source

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 [email protected] format for heroku.

I've tried running 'heroku run bash'

scp  /home/user/app/config.yml

I'm not sure how I can get it in the

scp [email protected]:/home/user/dir1/file.txt [email protected]:/home/user/dir2' 

format

Answer

Andre Miras picture Andre Miras · Oct 29, 2016

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