LoginSignup
1
0

More than 5 years have passed since last update.

flynn のリモートリポジトリから clone のようなことをしたい

Posted at

flynn は heroku よろしく git を使って deploy 等やっていきます。なのでリモートリポジトリを持ってるものの、任意に publickey を追加することは出来ず git clone しようとすると弾かれます。複数環境で簡単に開発出来る状態にする為ここから clone したい。

なお全部書いたあと気付いたけど https で普通に clone 出来ます。

git clone https://git.cluster-name.doma.in/my-app-name-on-flynn.git myapp

でも deploy する為には結局 flynn remote add が必要だったり、不要な origin remote が出来たり、ssh 越しで clone したいという場合の為に以下。

前提

CLI を導入しておく。cluster 登録済 (flynn cluster add)。

手順

初期化したローカルリポジトリの git remote に flynn のアプリを追加し、やっていきます。

cd myappdir
git init
flynn -a my-app-name-on-flynn remote add
git reset --hard flynn/master

ウェイ

備考

flynn remote コマンドの構文が分かり辛い。flynn remote -h すれば例見れるんだけど初見殺し。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0