4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Rocketeerを使ってみる

Last updated at Posted at 2014-08-01

######やること

PHPのデプロイツールのRocketeerを用いて環境 AからGitHubにおいてあるアプリケーションを、リモートの環境 Bにデプロイする。

######試した環境

CentOS 6.5

PHP 5.4

※ 以降、環境 Aで作業を行う

######composerのインストール

 # curl -sS https://getcomposer.org/installer | php -d detect_unicode=Off
 # mv composer.phar /usr/local/bin/composer

######Rocketeerのインストール

# cd /{project-folder}
# composer require anahkiasen/rocketeer:dev-master
 // default設定でEnterを押してく

######Rocketeerの設定

# cd /{project-folder}
# cd .rocketeer
# vi scm.php
 // GitHubのrepository, username, password等をUPDATE
# vi config.php
 // 環境 Bのhost, username, password等をUPDATE
# vi remote.php
 // 環境 Bのroot_directory, files等をUPDATE

######Rocketeerでデプロイ

# cd /{project-folder}
# ./vendor/bin/rocketeer deploy

######デプロイ結果の確認

# cd /{project-folder}
# cd .rocketeer/logs
# less production--yyyyMMdd.log
4
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
4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?