ぼっちそんに遠隔アタッチ

@uskey512 なしろめ先パイが SHDH4 で孤軍奮闘されている中、自宅ぼっちそんでリモート支援なうです。サーバサイドを Node.js で書いたのでとりあえず node-ninja さんを使ってみる方向。

とりあえず

以下な不具合 (?) が

  • ログインパスワード失念
    • リカバリ実施
  • ssh なリモートログインできぬ
    • ssh な鍵を更新してなかった

これで push できるんですが、node_modules は自動でアレだったのかなぁ。ええと、.git を削除して git init して git remote add か。

push 失敗

error: failed to push some refs to 'node@fugahoge:repo'
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.

ええと、サーバ上の repo 消しゃ良いのかな。一応 mv しといてリトライ。

fatal: 'repo' does not appear to be a git repository
fatal: The remote end hung up unexpectedly

ええと、git init --bare すりゃ良いのかいな

$ mkdir repo
$ cd repo
$ git init --bare

これで push 成功。そもそも仮想ホストなリポジトリが repo だった事さえ忘却の彼方だったりして本当に情無い。
そりゃ良いのですが push に結構時間がかかってる。てか server.js 作ってないや。

結局

以前試しに入れた express なサンプルが動いたママになってます。これは仮想ホストを作りなおした方が良いですかね。
とりあえず

  • shutdown して
  • 仮想ホスト delete して
  • 再度 provision

ということで晩メシ製造に着手します。