« 2013年06月 | メイン | 2013年09月 »

2013年07月 アーカイブ

2013年07月01日

GitHub で、アプリケーションを公開 No.1

ドキュメントの履歴を管理する Git を、Web上で実現する GitHub。

http://github.com/
非公開でなければ無料。

Sign up for GitHub
https://github.com/signup/free

Username : remixgrjp
Email Address は公開される。
https://github.com/remixgrjp

前提環境、バージョンは...▼

続きを読む "GitHub で、アプリケーションを公開 No.1" »

2013年07月02日

GitHub で、アプリケーションを公開 No.2

GitHub には ssh を使って接続するので、ローカル クライアントで 鍵を生成し、公開鍵を GitHub に登録。

●秘密鍵・公開鍵の生成
$ ssh-keygen -t rsa -C mymail@domain
Generating public/private rsa key pair.
Enter file in which to save the key (/home/taro/.ssh/id_rsa): 
Enter passphrase (empty for no passphrase): 	← なし
Enter same passphrase again:  		← なし
Your identification has been saved in /home/taro/.ssh/id_rsa.
Your public key has been saved in /home/taro/.ssh/id_rsa.pub.
The key fingerprint is:
99:ca:ce:03:cb:4c:74:99:10:4b:fd:33:be:24:c8:99 mymail@domain
The key's randomart image is:
+--[ RSA 2048]----+
|        .   . o. |
|       o . . *  E|
|      +   o * o  |
|     . o o + o   |
|      = S o      |
|     + * o .     |
|      = . .      |
|       .         |
|                 |
+-----------------+
$ ll ~/.ssh
total 16
-rw-r--r--. 1 taro apache  162 Jul  4 08:53 config
-rw-------  1 taro apache 1675 Jul  3 18:39 id_rsa
-rw-r-----  1 taro apache  404 Jul  3 18:39 id_rsa.pub
-rw-r--r--. 1 taro apache 2823 Jul  4 08:46 known_hosts
●登録する公開鍵文字列
[taro@fitPC2i ~]$ cat ~/.ssh/id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAuGuYZe/fw9yuyTZSYqCLKjKGeacAcE5cdSjZg4bdtA9ikPuadyxfvGs/UfJiUye8uTfXufOdF1llBRZSQlMkNNPq+1eet6yigYFuijc/MZ1OsZYPs0fcE9rV7BYYmhpnK89hCmEzs1sd3msM8sh837NhAGkYhwA5pXZaZlOBfcmF7Io12Eeo9tLC+TzrMkLMN6TVAwVPSXI+41qkfTx5/aYc7CLwIUcNubuk5tIh0lpK/6kBAIHD5wWFRWaFAWzc0fMfXk/WTTiPYSKpP4pNHdVS5n1+i/u8HaEVSLdRBQhXEqFDwnD4duHx+wpCNFkQAW68IaJf3ebFN3Ia+muivQ== mymail@domain
●自分の github.com/remixgrjp に公開鍵を登録
Account settings(マイページ右上)
https://github.com/settings/profile

SSH Keys

Add SSH Key
key へ公開鍵文字列をコピーして「Add key」

●登録された公開鍵の確認URL...▼

続きを読む "GitHub で、アプリケーションを公開 No.2" »

2013年07月03日

GitHub で、アプリケーションを公開 No.3

ベクターに無料公開中の ethna アプリケーション formmail を Github に公開。

●新規リポジトリを作成。
https://github.com/new
ローカルのアプリケーションは formmail ディレクトリ配下
https://github.com/remixgrjp/formmail

●Github で新しくリポジトリを作ると https://github.com/remixgrjp/formmail に公開手順が示される
Create a new repository on the command line
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin git@github.com:remixgrjp/formmail.git
git push -u origin master

Push an existing repository from the command line
git remote add origin git@github.com:remixgrjp/formmail.git
git push -u origin master
●その前に、gitconfig 設定...▼

続きを読む "GitHub で、アプリケーションを公開 No.3" »

2013年07月04日

GitHub で、アプリケーションを公開 No.4

●README.md を編集
[taro@fitPC2i ~]$ cd ~/web/www/appli/formmail
[taro@fitPC2i formmail]$ vi ~/web/www/appli/formmail/README.md
[taro@fitPC2i formmail]$ git status
# On branch master
# Changed but not updated:
#   (use "git add <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#
#	modified:   README.md
#
no changes added to commit (use "git add" and/or "git commit -a")
コミット前の変更ファイルが認識。次は...▼

続きを読む "GitHub で、アプリケーションを公開 No.4" »

2013年07月05日

git アップフレード 1.7.1 → 1.8.3.2

パブリックの他、プライベートも無料のギットブレイクに、アプリケーションの新規リポジトリ登録。
[taro@fitPC2i cu]$ git push -u origin master
error: The requested URL returned error: 401 Unauthorized while accessing https://git.codebreak.com/remix/cu.git/info/refs

fatal: HTTP request failed
git が古い模様。
前提環境・バージョン
CentOS release 6.4 (Final)

git version 1.7.1

現時点で yum コマンドでは アップグレードされない為、git を手動アップグレード。...▼

続きを読む "git アップフレード 1.7.1 → 1.8.3.2" »

2013年07月06日

ギットブレイクに新規リポジトリ登録

ギットブレイクでアカウントを登録したら、Git リポジトリ一覧ページで、新規リポジトリを追加。

前提環境・バージョン
CentOS release 6.4 (Final)

git version 1.8.3.2

github と異なり公開鍵の設定がなく、ID・パスワードで接続...▼

続きを読む "ギットブレイクに新規リポジトリ登録" »

About 2013年07月

2013年07月にブログ「Remix.asia」に投稿されたすべてのエントリーです。過去のものから新しいものへ順番に並んでいます。

前のアーカイブは2013年06月です。

次のアーカイブは2013年09月です。

他にも多くのエントリーがあります。メインページアーカイブページも見てください。