私はSymfony 2.1プロジェクトを持っており、コンポーザー経由で追加のバンドルがインストールされています。運用サーバーに展開したいのですが、composer.json
ファイルの内容を変更する必要があるのでしょうか?ここに私の現在のファイルの内容は次のとおりです。私のcomposer.jsonファイルはプロダクション環境でどのように見えるのですか?
{
"name": "symfony/framework-standard-edition",
"description": "The \"Symfony Standard Edition\" distribution",
"autoload": {
"psr-0": { "": "src/" }
},
"require": {
"php": ">=5.3.3",
"symfony/symfony": "2.1.1",
"doctrine/orm": ">=2.2.3,<2.4-dev",
"doctrine/doctrine-bundle": "1.0.*",
"twig/extensions": "1.0.*",
"symfony/assetic-bundle": "2.1.*",
"symfony/swiftmailer-bundle": "2.1.*",
"symfony/monolog-bundle": "2.1.*",
"sensio/distribution-bundle": "2.1.*",
"sensio/framework-extra-bundle": "2.1.*",
"sensio/generator-bundle": "2.1.*",
"jms/security-extra-bundle": "1.2.*",
"jms/di-extra-bundle": "1.1.*",
"friendsofsymfony/user-bundle": "*",
"knplabs/knp-paginator-bundle": "dev-master",
"ornicar/gravatar-bundle": "dev-master",
"liip/url-auto-converter-bundle": "dev-master"
},
"scripts": {
"post-install-cmd": [
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
],
"post-update-cmd": [
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
]
},
"config": {
"bin-dir": "bin"
},
"minimum-stability": "dev",
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web"
}
}
私はminimum-stability
設定を変更する必要がありますか?
ワイルドカードまたは「dev-master」なしで、すべての要件を単一のバージョンに修正する必要がありますか?
私はhttp://packagist.org/の各依存関係の最後の安定版を検索する予定ですか?
偉大な答えですが、あなたは "あなたのアプリを展開する"ステップを詳しく説明できますか?どの作曲家ファイルが必要ですか?明らかに.pharと.lockファイル。私はまだcomposer.jsonが必要ですか? composer_installer.phpはどうですか? –
@BenjaminBrizziまあ、私はもっと "あなたのアプリを展開する"ことはできません。 Composerは、アプリケーション自体ではなく、依存関係のみを処理します。通常、 "あなたのアプリをデプロイする"は 'git clone 'になることができます。 depsリストを含んでいるので、 'composer.json'が必要です。 'composer.lock'はあなたがインストールしたいバージョンだけを指定します。私はcomposer_installer.phpが何であるか分からない。 –