LoginSignup
0
4

More than 5 years have passed since last update.

エックスサーバーにGitを導入する手順

Last updated at Posted at 2018-09-05

エックスサーバーにSSHで接続してみよう!
http://vdeep.net/xserver-git
git pushで本番環境に“自動デプロイ”できる環境を作ってみよう!
http://vdeep.net/git-push-deploy

gitをxserverに設置しgit pushで自動で本番環境にアップロードするための方法【初心者向け】

まとめ

  1. 本番環境のgitで管理した場所でgit initを行う。
  2. ベアリポジトリをサーバー上の公開していない場所に作成する。
  3. ベアリポジトリの「hooks/post-receive」を設定する。(手順1.で作成した場所からベアリポジトリをpullする)
  4. ローカル環境からベアリポジトリをcloneする。
  5. ファイルを変更したらベアリポジトリにpushする。

Git(ギット)について
https://techracho.bpsinc.jp/nishi/2018_01_26/51459

[WordPress] テーマファイルのみgitに登録する
https://www.spreadworks.co.jp/wordpress-gitignore/

SourceTree(PuTTY)を使ってSSH公開鍵・秘密鍵の作成
https://gittt.wordpress.com/2015/02/19/sourcetree1-3/
SourceTreeとGitHub間のSSH認証がうまくいかない場合に試しておきたいこと
https://azunobu.hatenablog.com/entry/2015/08/06/201449

ロリポップ / チカッパプランで「Github, Bitbucket」にPushする
http://tuki0918.hatenablog.com/entry/2013/05/26/143744

0
4
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
0
4