m_shige1979のときどきITブログ

プログラムの勉強をしながら学習したことや経験したことをぼそぼそと書いていきます

Github(変なおっさんの顔でるので気をつけてね)

https://github.com/mshige1979

vagrantの中のcentosでherokuを使用する

参考


[vagrant 1.5] Vagrant 上の CentOS 6.5 から Heroku を使うには。 - Qiita
※お世話になりますm(_ _)m

手順

ソースを取得
$ wget -qO- https://toolbelt.heroku.com/install.sh | sh
This script requires superuser access to install software.
You will be prompted for your password by sudo.
Add the Heroku CLI to your PATH using:
$ echo 'PATH="/usr/local/heroku/bin:$PATH"' >> ~/.profile
[vagrant@localhost ~]$
パスを設定
$ echo 'PATH="/usr/local/heroku/bin:$PATH"' >> ~/.bash_profile 
$ source ~/.bash_profile
$ which heroku
/usr/local/heroku/bin/heroku

なんとかパスはっ見えるようになった

ログイン
[vagrant@localhost ~]$ heroku login
[WARNING] MultiJson is using the default adapter (ok_json).We recommend loading a different JSON library to improve performance.
Enter your Heroku credentials.
Email: 個人のメールアドレス
Password (typing will be hidden): /usr/local/heroku/lib/heroku/auth.rb:195: warning: Insecure world writable dir /vagrant/golang/gocode/bin in PATH, mode 040777

Authentication successful.
$

成功した?

警告?

$ heroku --version
[WARNING] MultiJson is using the default adapter (ok_json).We recommend loading a different JSON library to improve performance.
heroku-toolbelt/3.16.2 (x86_64-linux) ruby/1.8.7
$

英語はよめん