自宅でプロジェクトを実行するためのステージング マシンをセットアップしようとしています (Rails アプリケーション)。
# Remote machine connection
REPLOGIN=joel
REPADDRESS=192.168.2.100
REPLOCATION=/Users/joel/Projects/bio_watts #Repo location
REPNAME=biowatts
# Copy the repo to the server
echo "Copying the git repo to the server $REPADDRESS"
echo "repname:$REPNAME"
TEMPREP="$REPNAME.git"
echo "$TEMPREP"
git clone --bare .git $TEMPREP
scp -r $TEMPREP $REPLOGIN@$REPADDRESS:$REPLOCATION/
# Set up the origin for the project
#echo "Linking current repository to remote repository"
git remote add imac $REPLOGIN@$REPADDRESS:$REPLOCATION/$REPNAME.git/
これはすべてうまくいきました
$git remote
imac <== this is my remote machine
このマシンに git push しようとすると、次のようになります。
Permission denied (publickey,keyboard-interactive).
fatal: The remote end hung up unexpectedly
SSH について何かがあることは知っていますが、ローカル マシンとリモート マシン (Mac OS X Lion) で何をする必要があるかわかりません。
誰か助けてくれませんか?
乾杯、
ジョエル
次の問題:
私のリモート マシンでは、複製された biowatts.git ファイルが見つかります...しかし、プロジェクト ファイル (Rails アプリ) は表示されません...どのように機能しますか?
私の意図は、私の imac に git push し、そこでアプリを実行することです (シンスタート) ???
ファイルを手動でコピーする必要がありますか? 私は git clone が必要なすべてをコピーすると仮定しました...