lcreid / rails-5-jade

Rails 5 with Jekyll and Node on Ubuntu 18.04
MIT License
29 stars 3 forks source link

`.netrc` in Vagrant Box #31

Open lcreid opened 5 years ago

lcreid commented 5 years ago

Chandler requires your GitHub credentials in ~/.netrc. One thing might be to provision the box's ~ with .netrc that contains /^machine +api\.github\.com/,//+2 from the host. Another possibility: figure out how to capture the credentials the first time, and store them in ~/.netrc.

lcreid commented 5 years ago

The Vagrant provisioner can be told to copy a file from the host, but this would only work on Linux and MacOS, I fear. Needs further investigation.

lcreid commented 5 years ago

As detailed here, git on Windows expects an _netrc file, not a .netrc file. Ugh.

lcreid commented 5 years ago

Should also get the RubyGems credentials, for publishing gems:

config.vm.provision "file", source: "~/.gem/credentials", destination: ".gem/credentials"
lcreid commented 4 years ago

Also needs ~/.gitconfig so the git command works.