Composer を使って GitHub から 5.7 をインストールする方法

2014年4月23日 at 1:36

concrete5 の次期メジャーバージョンとなる 5.7 のアルファ3版がGitHubでリリースされました。

http://github.com/concrete5/concrete5-5.7.0

試してみたい方も多いと思いますが、5.7から、パッケージ版のインストールではなくGitHubからインストールする場合は、Composerが必要になります。concrete5のコンポーザーと用語がかぶってややこしいですが、このComposerとは、ここ数年のPHPアプリケーションの開発ではスタンダードとなっている、パッケージの依存関係を解決するしくみで、サードパーティのライブラリはconcrete5のGitHub上のレポジトリには含まれず、各自がComposerコマンドを使ってダウンロードしてくる形になります。

インストール方法

1. ショートタグを有効にしたPHPの動作環境を用意します。

2. concrete5-5.7.0 リポジトリからクローンします。
$ git clone https://github.com/concrete5/concrete5-5.7.0.git

3. concrete ディレクトリに移動します。
$ cd concrete5-5.7.0/web/concrete/

4. Composerをインストールします(グローバルでインストール済みの方は不要)
$ curl -sS https://getcomposer.org/installer | php

5. composer install コマンドで依存パッケージをダウンロードします。
$ php composer.phar install

無事実行されると、vendor ディレクトリにサードパーティのライブラリが展開されます。

Composerの詳細な使用方法は公式サイトを確認してください。
http://getcomposer.org/doc/00-intro.md
(Macの場合sudoが必要かも)

なお、このアルファ版はまだかなり未完成な状態ですので、公開サイトなどでは絶対に使用しないてください。

concrete5 5.7 Developer Snapshot Alpha '14 (Major Updates)
http://www.concrete5.org/community/forums/5-7-discussion/concrete5-5.7-developer-snapshot-alpha-14-major-updates/#621865

5.7 Add-On Developers Guide, Part 1
http://www.concrete5.org/community/forums/5-7-discussion/5.7-add-on-developers-guide-part-1/

タグ:

Re: Composer を使って GitHub から 5.7 をインストールする方法

2014年4月23日 at 5:32
情報ありがとうございます。
軽く触ってみました。だいぶ変わっていますね。

ブロックがドラッグ&ドロップになっているのがImpressPagesCMSのようで
いい感じかなと思いましたけど、5.6までとは別物と考えた方がいいですね。
基本機能は変わらない感じですが、慣れるまでに時間掛かる人が居そうなのと
今使っているアドオンの対応次第でしょうか。
ブロックの移動等、今までプルダウンから選んでたものが選ばずに出来るようになっていて
凄い楽でいい感じがします。

ダッシュボードの見た目も洗礼されていい感じですが、Firefox系はまったく機能しません・・・
まだアルファ版なので正式版が出るまでゆったりと待つことにします。
 

Re: Composer を使って GitHub から 5.7 をインストールする方法

2014年4月23日 at 5:41
今の時点でFirefoxで動かないってのはダメですね…。情報ありがとうございます。他にも気づかれた点があればコアチームにフィードバックしますので、よろしくお願いします。
 

Re: Composer を使って GitHub から 5.7 をインストールする方法

2014年5月13日 at 18:40
linuxmint15 で php composer.phar install をすると下記のエラーが出ます。
解決策はありますか?

Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
Your requirements could not be resolved to an installable set of packages.

Problem 1
- Installation request for facebook/php-sdk dev-master -> satisfiable by facebook/php-sdk[dev-master].
- facebook/php-sdk dev-master requires ext-curl * -> the requested PHP extension curl is missing from your system.
Problem 2
- Installation request for kertz/twitteroauth dev-master -> satisfiable by kertz/twitteroauth[dev-master].
- kertz/twitteroauth dev-master requires ext-curl * -> the requested PHP extension curl is missing from your system.
 

Re: Composer を使って GitHub から 5.7 をインストールする方法

2014年5月13日 at 18:41
composer.lock ファイルが古いんですね。たぶん、本家の方で更新してないんだと思います。

composer update コマンドを走らせてやれば解消します。
 

Re: Composer を使って GitHub から 5.7 をインストールする方法

2014年5月14日 at 8:36
composer update のコマンドで同様のエラーが出ます。
 

Re: Composer を使って GitHub から 5.7 をインストールする方法

2014年5月14日 at 8:48
解決しました。linuxmint15ではphp-curlが標準でインストールされていないのが原因でした。

sudo apt-get -y install php5-curl

を実行後

php composer.phar update

で、うまくいきました。
 

Re: Composer を使って GitHub から 5.7 をインストールする方法

2014年7月22日 at 13:45
READMEが更新されていますが、リポジトリにはCSS、JSも含まれなくなりました。composerの実行後、gruntタスクの実行も必要になります。

npmを使ってgruntをインストール
cd build
npm install grunt grunt-contrib-concat grunt-contrib-uglify grunt-contrib-cssmin grunt-contrib-less grunt-contrib-watch


JS, CSSをgruntを使ってビルドする
grunt release