LoginSignup
2
1

More than 3 years have passed since last update.

centos7にgitからデプロイ

Last updated at Posted at 2018-09-20

これで俺のgitデプロイ環境は完成。
手間取ったので残しておく。
セキュリティ的に何かあっても俺は知らない。
だってテスト環境だし。

環境
・centos7
・bitbucket

# yum -y install git

必要なら

# mkdir デプロイディレクトリ

ここから真面目に

# cd デプロイディレクトリ
# git init

毎回パスワードを入れるのが面倒なので、

# git clone -b ブランチ名 https://bitbucket.org/hoge/hoge.git

を、

# git clone -b ブランチ名 https://ユーザー名:パスワード@bitbucket.org/hoge/hoge.git

とした。

あとは、修正するたびに、

# git pull

で。

2
1
1

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
2
1