ユーザ用ツール

サイト用ツール


git:publishing

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
git:publishing [2024/10/17 16:03] nullpongit:publishing [2024/10/17 16:03] (現在) nullpon
行 8: 行 8:
 ===== サーバ側準備 ====== ===== サーバ側準備 ======
  
-  * サーバ  example.paulownia.jp +  * サーバ  example.com 
-  * リポジトリ /var/git/example.paulownia.jp.git+  * リポジトリ /var/git/example.com.git
   * ドキュメントルート /var/www/example.com/htdocs   * ドキュメントルート /var/www/example.com/htdocs
  
 公開用のリポジトリを作る 公開用のリポジトリを作る
  
-  $ cd /var/git/example.paulownia.jp.git+  $ cd /var/git/example.com.git
   $ git init --bare   $ git init --bare
  
行 31: 行 31:
 remoteリポジトリを追加(名前は何でも良いがoriginという名前にはしない方がいいだろう、ここではwebserverにした) remoteリポジトリを追加(名前は何でも良いがoriginという名前にはしない方がいいだろう、ここではwebserverにした)
  
-  $ git remote add webserver ssh://nullpon@example.paulownia.jp/var/git/example.paulownia.jp.git+  $ git remote add webserver ssh://nullpon@example.com/var/git/example.com.git
  
 webserverにpushする。 webserverにpushする。
git/publishing.1729180991.txt.gz · 最終更新: 2024/10/17 16:03 by nullpon