herokuでFacebookアプリ
なんか公式の通りやったけどいまいちうまくいかず...。
以下で大丈夫でそう。
※herokuアカウントは持ってる前提
※Developerサイトで登録はheroku(node.js)ですませておく
1.ローカルにディレクトリ作る
2.gitのレポジトリつくる
$ git init $ git remote add heroku git@heroku.com:************.git $ git clone git@heroku.com:************.git -o heroku
これで、あとは適当に編集して、
$ git add . $ git commit -m "Tekitou" $ git push heroku master
これだと
$ git push heroku master To git@heroku.com:************.git ! [rejected] master -> master (non-fast-forward) error: failed to push some refs to 'git@heroku.com:************.git' To prevent you from losing history, non-fast-forward updates were rejected Merge the remote changes (e.g. 'git pull') before pushing again. See the 'Note about fast-forwards' section of 'git push --help' for details.
こうなった。
なので
$ git pull git@heroku.com:************.git
こうして
$ git push heroku
これでできた。