官网安装方式
创建项目并安装sylius
php composer.phar create-project -s beta sylius/sylius-standard project #project为项目名称,可以随意取名,安装完成在当前执行目录下面创建项目
php composer.phar create-project -s beta sylius/sylius-standard sylius
composers参照http://blog.csdn.net/xmlife/article/details/51945551
- create-project 创建项目
- --stability (-s): 资源包的最低稳定版本,默认为 stabl
- git clone https://github.com/sylius/sylius-standard
- 项目名称为sylius
由于国内访问github非常慢,在构建整个过程中非常耗时,又肯能中断,本次讲解第二种安装方式。
快捷方便安装
这种安装方式主要是规避了访问国外资源比较耗时,所以通过一些折中的办法来进行项目部署。主要安装步奏大概如下:
- 把github源码迁移到oschina上面,然后再克隆,这样速度比较快。
- php包管理工具再下载依赖时,也是请求github,总共有139个依赖,我已经把composers的缓存打包
- npm前端构建时由于node-sass和gulp-sass插件的安装比较坑,所以把已经缓存好的node_modules打包
- 本次构建基于nginx|php|docker进行(dockr镜像为ej52/alpine-nginx-php)
node_modules.tar.gz下载地址https://pan.baidu.com/s/1eSl68xG
composer.tar.gz下载地址https://pan.baidu.com/s/1nvlsrzj
安装脚本
setup.sh整个步奏的命令已经集合到脚本里面,这样避免手动敲很多代码。
启动docker 容器
docker run -it --name=sylius -p 8011:8011 -p 85:80 -p 8000:8000 -v /home/www-data/:/home/www-data/
ej52/alpine-nginx-php sh -x /home/www-data/setup.sh
/home/www-data目录下面有composer.tar.gz压缩包、node_modules.tar.gz压缩包、docker文件夹主要定义nginx和php的一些配置文件
setup.sh安装脚本、build.sh部署时使用的docker命令
在容器里面执行
sh -x /home/www-data/setup.sh
执行安装过程如下:
[root@localhost ~]# docker run -it --name=sylius -p 8011:8011 -p 85:80 -p 8000:8000 -v /home/www-data/:/home/www-data/ ej52/alpine-nginx-php sh -x /home/www-data/setup.sh
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 30-resolver: executing...
[cont-init.d] 30-resolver: exited 0.
[cont-init.d] 40-resolver: executing...
[cont-init.d] 40-resolver: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
+ echo https://mirrors.tuna.tsinghua.edu.cn/alpine/v3.4/main/
+ echo https://mirrors.tuna.tsinghua.edu.cn/alpine/v3.4/community/
+ apk update
fetch https://mirrors.tuna.tsinghua.edu.cn/alpine/v3.4/main/x86_64/APKINDEX.tar.gz
[06-Mar-2017 09:45:05] NOTICE: fpm is running, pid 212
[06-Mar-2017 09:45:05] NOTICE: ready to handle connections
fetch https://mirrors.tuna.tsinghua.edu.cn/alpine/v3.4/community/x86_64/APKINDEX.tar.gz
v3.4.6-80-ge61b8d5 [https://mirrors.tuna.tsinghua.edu.cn/alpine/v3.4/main/]
v3.4.6-33-g38ef2d2 [https://mirrors.tuna.tsinghua.edu.cn/alpine/v3.4/community/]
OK: 5986 distinct packages available
+ apk add nodejs gcc g++ make python git
(1/25) Upgrading musl (1.1.14-r12 -> 1.1.14-r14)
(2/25) Installing binutils-libs (2.26-r0)
(3/25) Installing binutils (2.26-r0)
(4/25) Installing gmp (6.1.0-r0)
(5/25) Installing isl (0.14.1-r0)
(6/25) Installing libgomp (5.3.0-r0)
(7/25) Installing libatomic (5.3.0-r0)
(8/25) Installing pkgconf (0.9.12-r0)
(9/25) Installing pkgconfig (0.25-r1)
(10/25) Installing mpfr3 (3.1.2-r0)
(11/25) Installing mpc1 (1.0.3-r0)
(12/25) Installing gcc (5.3.0-r0)
(13/25) Installing musl-dev (1.1.14-r14)
(14/25) Installing libc-dev (0.7-r0)
(15/25) Installing g++ (5.3.0-r0)
(16/25) Installing expat (2.2.0-r0)
(17/25) Installing git (2.8.3-r0)
(18/25) Upgrading musl-utils (1.1.14-r12 -> 1.1.14-r14)
(19/25) Installing libuv (1.9.1-r0)
(20/25) Installing nodejs (6.7.0-r0)
(21/25) Installing libbz2 (1.0.6-r5)
(22/25) Installing libffi (3.2.1-r2)
(23/25) Installing gdbm (1.11-r1)
(24/25) Installing sqlite-libs (3.13.0-r0)
(25/25) Installing python (2.7.12-r0)
Executing busybox-1.24.2-r9.trigger
OK: 292 MiB in 59 packages
+ cd /home/www-data/
+ git clone https://git.oschina.net/huangmeng4520/Sylius.git
Cloning into 'Sylius'...
remote: Counting objects: 254468, done.
remote: Compressing objects: 100% (80455/80455), done.
remote: Total 254468 (delta 147964), reused 254349 (delta 147845)
Receiving objects: 100% (254468/254468), 55.84 MiB | 1.77 MiB/s, done.
Resolving deltas: 100% (147964/147964), done.
Checking connectivity... done.
+ tar -zxf composer.tar.gz
+ tar -zxf node_modules.tar.gz
+ cp -r /home/www-data/.composer /root/
+ [ -d Sylius ]
+ cp -r .composer /root/
+ cd /home/www-data/Sylius
+ composer install
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
- Installing behat/transliterator (v1.1.0)
Loading from cache
- Installing doctrine/lexer (v1.0.1)
Loading from cache
- Installing doctrine/inflector (v1.1.0)
Loading from cache
- Installing doctrine/collections (v1.4.0)
Loading from cache
- Installing doctrine/cache (v1.6.1)
Loading from cache
- Installing doctrine/annotations (v1.3.1)
Loading from cache
- Installing doctrine/common (v2.7.2)
Loading from cache
- Installing twig/twig (v1.31.0)
Loading from cache
- Installing symfony/polyfill-util (v1.3.0)
Loading from cache
- Installing paragonie/random_compat (v2.0.4)
Loading from cache
- Installing symfony/polyfill-php70 (v1.3.0)
Loading from cache
- Installing symfony/polyfill-php56 (v1.3.0)
Loading from cache
- Installing symfony/polyfill-mbstring (v1.3.0)
Loading from cache
- Installing symfony/symfony (v3.2.2)
Loading from cache
- Installing symfony/polyfill-intl-icu (v1.3.0)
Loading from cache
- Installing psr/log (1.0.2)
Loading from cache
- Installing psr/cache (1.0.1)
Loading from cache
- Installing doctrine/doctrine-cache-bundle (1.3.0)
Loading from cache
- Installing jdorn/sql-formatter (v1.2.17)
Loading from cache
- Installing doctrine/dbal (v2.5.10)
Loading from cache
- Installing doctrine/doctrine-bundle (1.6.7)
Loading from cache
- Installing doctrine/data-fixtures (v1.2.2)
Loading from cache
- Installing doctrine/doctrine-fixtures-bundle (2.3.0)
Loading from cache
- Installing zendframework/zend-eventmanager (3.1.0)
Loading from cache
- Installing zendframework/zend-code (2.6.3)
Loading from cache
- Installing ocramius/proxy-manager (1.0.2)
Loading from cache
- Installing doctrine/migrations (v1.5.0)
Loading from cache
- Installing doctrine/doctrine-migrations-bundle (v1.2.1)
Loading from cache
- Installing friendsofsymfony/oauth2-php (1.2.1)
Loading from cache
- Installing friendsofsymfony/oauth-server-bundle (1.5.2)
Loading from cache
- Installing willdurand/negotiation (v2.2.1)
Loading from cache
- Installing willdurand/jsonp-callback-validator (v1.1.0)
Loading from cache
- Installing friendsofsymfony/rest-bundle (2.1.1)
Loading from cache
- Installing guzzlehttp/promises (v1.3.1)
Loading from cache
- Installing psr/http-message (1.0.1)
Loading from cache
- Installing guzzlehttp/psr7 (1.3.1)
Loading from cache
- Installing incenteev/composer-parameter-handler (v2.1.2)
Loading from cache
- Installing phpoption/phpoption (1.5.0)
Loading from cache
- Installing phpcollection/phpcollection (0.5.0)
Loading from cache
- Installing jms/parser-lib (1.0.0)
Loading from cache
- Installing jms/metadata (1.6.0)
Loading from cache
- Installing doctrine/instantiator (1.0.5)
Loading from cache
- Installing jms/serializer (1.4.2)
Loading from cache
- Installing knplabs/gaufrette (0.2.1)
Loading from cache
- Installing knplabs/knp-gaufrette-bundle (0.3.0)
Loading from cache
- Installing knplabs/knp-menu (2.2.0)
Loading from cache
- Installing knplabs/knp-menu-bundle (2.1.3)
Loading from cache
- Installing jeremykendall/php-domain-parser (3.0.0)
Loading from cache
- Installing league/uri (4.2.2)
Loading from cache
- Installing imagine/imagine (v0.6.3)
Loading from cache
- Installing liip/imagine-bundle (1.7.1)
Loading from cache
- Installing hamcrest/hamcrest-php (v1.2.2)
Loading from cache
- Installing mockery/mockery (0.9.7)
Loading from cache
- Installing payum/iso4217 (1.0.1)
Loading from cache
- Installing php-http/message-factory (v1.0.2)
Loading from cache
- Installing clue/stream-filter (v1.3.0)
Loading from cache
- Installing php-http/message (v1.4.1)
Loading from cache
- Installing php-http/promise (v1.0.0)
Loading from cache
- Installing php-http/httplug (v1.1.0)
Loading from cache
- Installing guzzlehttp/guzzle (6.2.2)
Loading from cache
- Installing php-http/guzzle6-adapter (v1.1.1)
Loading from cache
- Installing payum/payum (1.3.9)
Loading from cache
- Installing payum/payum-bundle (2.1.1)
Loading from cache
- Installing sensiolabs/security-checker (v4.0.0)
Loading from cache
- Installing sensio/distribution-bundle (v5.0.18)
Loading from cache
- Installing sonata-project/intl-bundle (2.3.0)
Loading from cache
- Installing gedmo/doctrine-extensions (v2.4.26)
Loading from cache
- Installing stof/doctrine-extensions-bundle (v1.2.2)
Loading from cache
- Installing monolog/monolog (1.22.0)
Loading from cache
- Installing symfony/monolog-bundle (v3.0.3)
Loading from cache
- Installing symfony/polyfill-iconv (v1.3.0)
Loading from cache
- Installing swiftmailer/swiftmailer (v5.4.5)
Loading from cache
- Installing symfony/swiftmailer-bundle (v2.4.2)
Loading from cache
- Installing twig/extensions (v1.4.1)
Loading from cache
- Installing pagerfanta/pagerfanta (v1.0.4)
Loading from cache
- Installing white-october/pagerfanta-bundle (v1.0.8)
Loading from cache
- Installing willdurand/hateoas (2.10.0)
Loading from cache
- Installing jms/serializer-bundle (1.1.0)
Loading from cache
- Installing willdurand/hateoas-bundle (1.2.0)
Loading from cache
- Installing winzou/state-machine (0.3.2)
Loading from cache
- Installing winzou/state-machine-bundle (v0.3.0)
Loading from cache
- Installing zendframework/zend-stdlib (3.1.0)
Loading from cache
- Installing zendframework/zend-hydrator (2.2.1)
Loading from cache
- Installing sebastian/recursion-context (2.0.0)
Loading from cache
- Installing sebastian/exporter (2.0.0)
Loading from cache
- Installing sebastian/diff (1.4.1)
Loading from cache
- Installing sebastian/comparator (1.2.4)
Loading from cache
- Installing webmozart/assert (1.2.0)
Loading from cache
- Installing phpdocumentor/reflection-common (1.0)
Loading from cache
- Installing phpdocumentor/type-resolver (0.2.1)
Loading from cache
- Installing phpdocumentor/reflection-docblock (3.1.1)
Loading from cache
- Installing phpspec/prophecy (v1.6.2)
Loading from cache
- Installing phpspec/php-diff (v1.1.0)
Loading from cache
- Installing phpspec/phpspec (3.2.3)
Loading from cache
- Installing akeneo/phpspec-skip-example-extension (v2.0.0)
Loading from cache
- Installing behat/mink (v1.7.1)
Loading from cache
- Installing behat/mink-browserkit-driver (v1.3.2)
Loading from cache
- Installing instaclick/php-webdriver (1.4.3)
Loading from cache
- Installing behat/mink-selenium2-driver (v1.3.1)
Loading from cache
- Installing coduo/php-to-string (2.0.1)
Loading from cache
- Installing container-interop/container-interop (1.1.0)
Loading from cache
- Installing sebastian/version (2.0.1)
Loading from cache
- Installing sebastian/resource-operations (1.0.0)
Loading from cache
- Installing sebastian/object-enumerator (2.0.0)
Loading from cache
- Installing sebastian/global-state (1.1.1)
Loading from cache
- Installing sebastian/environment (2.0.0)
Loading from cache
- Installing phpunit/php-text-template (1.2.1)
Loading from cache
- Installing phpunit/phpunit-mock-objects (3.4.3)
Loading from cache
- Installing phpunit/php-timer (1.0.8)
Loading from cache
- Installing phpunit/php-file-iterator (1.4.2)
Loading from cache
- Installing sebastian/code-unit-reverse-lookup (1.0.0)
Loading from cache
- Installing phpunit/php-token-stream (1.4.9)
Loading from cache
- Installing phpunit/php-code-coverage (4.0.5)
Loading from cache
- Installing myclabs/deep-copy (1.6.0)
Loading from cache
- Installing phpunit/phpunit (5.7.9)
Loading from cache
- Installing dama/doctrine-test-bundle (v1.0.9)
Loading from cache
- Installing behat/gherkin (v4.4.5)
Loading from cache
- Installing behat/behat (v3.3.0)
Loading from cache
- Installing friends-of-behat/context-service-extension (v0.3.0)
Loading from cache
- Installing friends-of-behat/cross-container-extension (v0.2.0)
Loading from cache
- Installing friends-of-behat/performance-extension (v1.0.1)
Loading from cache
- Installing friends-of-behat/service-container-extension (v0.3.0)
Loading from cache
- Installing friends-of-behat/symfony-extension (v0.2.1)
Loading from cache
- Installing friends-of-behat/variadic-extension (v0.1.0)
Loading from cache
- Installing kriswallsmith/buzz (v0.15)
Loading from cache
- Installing hwi/oauth-bundle (0.5.3)
Loading from cache
- Installing polishsymfonycommunity/symfony-mocker-container (v1.0.2)
Loading from cache
- Installing fzaninotto/faker (v1.6.0)
Loading from cache
- Installing nelmio/alice (2.2.2)
Loading from cache
- Installing doctrine/orm (v2.5.6)
Loading from cache
- Installing openlss/lib-array2xml (0.0.10)
Loading from cache
- Installing coduo/php-matcher (2.1.0)
Loading from cache
- Installing lakion/api-test-case (v1.1.0)
Loading from cache
- Installing behat/mink-extension (v2.2)
Loading from cache
- Installing lakion/mink-debug-extension (v1.2.3)
Loading from cache
- Installing malukenho/kawaii-gherkin (0.1.3)
Loading from cache
- Installing matthiasnoback/symfony-config-test (v2.1.0)
Loading from cache
- Installing matthiasnoback/symfony-dependency-injection-test (v1.1.0)
Loading from cache
- Installing mikey179/vfsstream (v1.6.4)
Loading from cache
- Installing pamil/prophecy-common (v0.1.0)
Loading from cache
- Installing se/selenium-server-standalone (v2.53.1)
Loading from cache
- Installing stripe/stripe-php (v4.4.0)
Loading from cache
paragonie/random_compat suggests installing ext-libsodium (Provides a modern crypto API that can be used to generate random bytes.)
doctrine/doctrine-cache-bundle suggests installing symfony/security-acl (For using this bundle to cache ACLs)
doctrine/data-fixtures suggests installing doctrine/mongodb-odm (For loading MongoDB ODM fixtures)
doctrine/data-fixtures suggests installing doctrine/phpcr-odm (For loading PHPCR ODM fixtures)
ocramius/proxy-manager suggests installing ocramius/generated-hydrator (To have very fast object to array to object conversion for ghost objects)
ocramius/proxy-manager suggests installing zendframework/zend-json (To have the JsonRpc adapter (Remote Object feature))
ocramius/proxy-manager suggests installing zendframework/zend-soap (To have the Soap adapter (Remote Object feature))
ocramius/proxy-manager suggests installing zendframework/zend-xmlrpc (To have the XmlRpc adapter (Remote Object feature))
friendsofsymfony/oauth-server-bundle suggests installing doctrine/mongodb-odm-bundle (*)
friendsofsymfony/oauth-server-bundle suggests installing propel/propel-bundle (If you want to use Propel with Symfony2, then you will have to install the PropelBundle)
, to be compliant with interfaces)
friendsofsymfony/rest-bundle suggests installing sensio/framework-extra-bundle (Add support for route annotations and the view response listener, requires ^3.0)
knplabs/gaufrette suggests installing amazonwebservices/aws-sdk-for-php (to use the legacy Amazon S3 adapters)
knplabs/gaufrette suggests installing aws/aws-sdk-php (to use the Amazon S3 adapter)
knplabs/gaufrette suggests installing dropbox-php/dropbox-php (to use the Dropbox adapter)
knplabs/gaufrette suggests installing ext-apc (to use the APC adapter)
knplabs/gaufrette suggests installing ext-mongo (*)
knplabs/gaufrette suggests installing google/apiclient (to use GoogleCloudStorage adapter)
knplabs/gaufrette suggests installing herzult/php-ssh (to use SFtp adapter)
knplabs/gaufrette suggests installing microsoft/windowsazure (to use Microsoft Azure Blob Storage adapter)
knplabs/gaufrette suggests installing phpseclib/phpseclib (to use PhpseclibSftp adapter)
knplabs/gaufrette suggests installing rackspace/php-opencloud (to use Opencloud adapter)
knplabs/knp-menu suggests installing pimple/pimple (for the built-in implementations of the menu provider and renderer provider)
knplabs/knp-menu suggests installing silex/silex (for the integration with your silex application)
imagine/imagine suggests installing ext-gmagick (to use the Gmagick implementation)
imagine/imagine suggests installing ext-imagick (to use the Imagick implementation)
liip/imagine-bundle suggests installing amazonwebservices/aws-sdk-for-php (Required to use AWS version 1 cache resolver.)
liip/imagine-bundle suggests installing aws/aws-sdk-php (Required to use AWS version 2/3 cache resolver.)
liip/imagine-bundle suggests installing league/flysystem (Required to use FlySystem data loader or cache resolver.)
php-http/message suggests installing slim/slim (Used with Slim Framework PSR-7 implementation)
php-http/message suggests installing zendframework/zend-diactoros (Used with Diactoros Factories)
payum/payum suggests installing authorizenet/authorizenet (~1.8 If you want to use Authorizenet.NET install authorizenet/authorizenet:~1.8 library)
payum/payum suggests installing fp/klarna-invoice (0.1.* If you want to use Klarna Invoice install fp/klarna-invoice:0.1.* library)
payum/payum suggests installing klarna/checkout (~1.0|~2.0 If you want to use Klarna Checkout install klarna/checkout:~1|~2.0 library)
payum/payum suggests installing paypal/rest-api-sdk-php (0.5.* If you want to use PayPal REST API install paypal/rest-api-sdk-php:0.5.* library)
payum/payum suggests installing sofort/sofortlib-php (~3.0 If you want to use Sofort install sofort/sofortlib-php:^3.0 library)
payum/payum-bundle suggests installing sonata-project/admin-bundle (~2.4 If you want to configure payments in the backend.)
sonata-project/intl-bundle suggests installing sonata-project/user-bundle (For user timezone detection)
gedmo/doctrine-extensions suggests installing doctrine/mongodb-odm (to use the extensions with the MongoDB ODM)
stof/doctrine-extensions-bundle suggests installing doctrine/mongodb-odm-bundle (to use the MongoDB ODM extensions)
monolog/monolog suggests installing aws/aws-sdk-php (Allow sending log messages to AWS services like DynamoDB)
monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server)
monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ required))
monolog/monolog suggests installing ext-mongo (Allow sending log messages to a MongoDB server)
monolog/monolog suggests installing graylog2/gelf-php (Allow sending log messages to a GrayLog2 server)
monolog/monolog suggests installing mongodb/mongodb (Allow sending log messages to a MongoDB server via PHP Driver)
monolog/monolog suggests installing php-amqplib/php-amqplib (Allow sending log messages to an AMQP server using php-amqplib)
monolog/monolog suggests installing php-console/php-console (Allow sending log messages to Google Chrome)
monolog/monolog suggests installing rollbar/rollbar (Allow sending log messages to Rollbar)
monolog/monolog suggests installing ruflin/elastica (Allow sending log messages to an Elastic Search server)
monolog/monolog suggests installing sentry/sentry (Allow sending log messages to a Sentry server)
pagerfanta/pagerfanta suggests installing doctrine/mongodb-odm (To use the DoctrineODMMongoDBAdapter.)
pagerfanta/pagerfanta suggests installing doctrine/phpcr-odm (To use the DoctrineODMPhpcrAdapter. >= 1.1.0)
pagerfanta/pagerfanta suggests installing mandango/mandango (To use the MandangoAdapter.)
pagerfanta/pagerfanta suggests installing propel/propel1 (To use the PropelAdapter)
pagerfanta/pagerfanta suggests installing solarium/solarium (To use the SolariumAdapter.)
jms/serializer-bundle suggests installing jms/di-extra-bundle (Required to get lazy loading (de)serialization visitors, ~1.3)
zendframework/zend-hydrator suggests installing zendframework/zend-filter (^2.6, to support naming strategy hydrator usage)
zendframework/zend-hydrator suggests installing zendframework/zend-serializer (^2.6.1, to use the SerializableStrategy)
zendframework/zend-hydrator suggests installing zendframework/zend-servicemanager (^2.7.5 || ^3.0.3, to support hydrator plugin manager usage)
phpspec/phpspec suggests installing phpspec/nyan-formatters (Adds Nyan formatters)
behat/mink suggests installing behat/mink-goutte-driver (fast headless driver for any app without JS emulation)
behat/mink suggests installing behat/mink-zombie-driver (fast and JS-enabled headless driver for any app (requires node.js))
sebastian/global-state suggests installing ext-uopz (*)
phpunit/php-code-coverage suggests installing ext-xdebug (>=2.4.0)
phpunit/phpunit suggests installing ext-xdebug (*)
phpunit/phpunit suggests installing phpunit/php-invoker (~1.1)
behat/behat suggests installing behat/symfony2-extension (for integration with Symfony2 web framework)
behat/behat suggests installing behat/yii-extension (for integration with Yii web framework)
hwi/oauth-bundle suggests installing friendsofsymfony/user-bundle (to connect FOSUB with this bundle)
Generating autoload files
> Incenteev\ParameterHandler\ScriptHandler::buildParameters
Creating the "app/config/parameters.yml" file
Some parameters are missing. Please provide them.
database_driver (pdo_mysql):
database_host (127.0.0.1): 10.0.0.10
database_port (null): 3306
database_name (sylius):
database_user (root):
database_password (null): newpass
mailer_transport (smtp):
mailer_host (127.0.0.1):
mailer_user (null):
mailer_password (null):
secret (EDITME):
locale (en_US): zh_CN
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache
// Clearing the cache for the dev environment with debug
// true
[OK] Cache for the "dev" environment (debug=true) was successfully cleared.
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installAssets
Trying to install assets as relative symbolic links.
--- ------------------------------ ------------------
Bundle Method / Error
--- ------------------------------ ------------------
? WhiteOctoberPagerfantaBundle relative symlink
--- ------------------------------ ------------------
[OK] All assets were successfully installed.
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installRequirementsFile
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::prepareDeploymentTarget
+ [ 0 = 0 ]
+ php ./bin/console sylius:install:database --env prod -vvv
[Doctrine\DBAL\Exception\ConnectionException]
An exception occured in driver: SQLSTATE[HY000] [1049] Unknown database 'sylius'
Exception trace:
() at /home/www-data/Sylius/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:103
Doctrine\DBAL\Driver\AbstractMySQLDriver->convertException() at /home/www-data/Sylius/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:145
Doctrine\DBAL\DBALException::driverException() at /home/www-data/Sylius/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php:47
Doctrine\DBAL\Driver\PDOMySql\Driver->connect() at /home/www-data/Sylius/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:360
Doctrine\DBAL\Connection->connect() at /home/www-data/Sylius/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:429
Doctrine\DBAL\Connection->getDatabasePlatformVersion() at /home/www-data/Sylius/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:389
Doctrine\DBAL\Connection->detectDatabasePlatform() at /home/www-data/Sylius/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:328
Doctrine\DBAL\Connection->getDatabasePlatform() at /home/www-data/Sylius/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php:763
Doctrine\ORM\Mapping\ClassMetadataFactory->getTargetPlatform() at /home/www-data/Sylius/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php:616
Doctrine\ORM\Mapping\ClassMetadataFactory->completeIdGeneratorMapping() at /home/www-data/Sylius/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php:174
ctory.php:332
.php:78
ory.php:216
AbstractClassMetadataFactory.php:115
ProxyCacheWarmer.php:69
egate.php:48
Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate->warmUp() at /home/www-data/Sylius/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:496
Symfony\Component\HttpKernel\Kernel->initializeContainer() at /home/www-data/Sylius/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:116
Symfony\Component\HttpKernel\Kernel->boot() at /home/www-data/Sylius/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:68
Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /home/www-data/Sylius/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:120
Symfony\Component\Console\Application->run() at /home/www-data/Sylius/bin/console:28
[Doctrine\DBAL\Driver\PDOException (1049)]
SQLSTATE[HY000] [1049] Unknown database 'sylius'
Exception trace:
() at /home/www-data/Sylius/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:47
Doctrine\DBAL\Driver\PDOConnection->__construct() at /home/www-data/Sylius/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php:41
Doctrine\DBAL\Driver\PDOMySql\Driver->connect() at /home/www-data/Sylius/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:360
Doctrine\DBAL\Connection->connect() at /home/www-data/Sylius/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:429
Doctrine\DBAL\Connection->getDatabasePlatformVersion() at /home/www-data/Sylius/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:389
Doctrine\DBAL\Connection->detectDatabasePlatform() at /home/www-data/Sylius/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:328
Doctrine\DBAL\Connection->getDatabasePlatform() at /home/www-data/Sylius/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php:763
Doctrine\ORM\Mapping\ClassMetadataFactory->getTargetPlatform() at /home/www-data/Sylius/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php:616
Doctrine\ORM\Mapping\ClassMetadataFactory->completeIdGeneratorMapping() at /home/www-data/Sylius/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php:174
ctory.php:332
.php:78
ory.php:216
AbstractClassMetadataFactory.php:115
ProxyCacheWarmer.php:69
egate.php:48
Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate->warmUp() at /home/www-data/Sylius/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:496
Symfony\Component\HttpKernel\Kernel->initializeContainer() at /home/www-data/Sylius/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:116
Symfony\Component\HttpKernel\Kernel->boot() at /home/www-data/Sylius/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:68
Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /home/www-data/Sylius/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:120
Symfony\Component\Console\Application->run() at /home/www-data/Sylius/bin/console:28
[PDOException (1049)]
SQLSTATE[HY000] [1049] Unknown database 'sylius'
Exception trace:
() at /home/www-data/Sylius/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:43
PDO->__construct() at /home/www-data/Sylius/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:43
Doctrine\DBAL\Driver\PDOConnection->__construct() at /home/www-data/Sylius/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php:41
Doctrine\DBAL\Driver\PDOMySql\Driver->connect() at /home/www-data/Sylius/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:360
Doctrine\DBAL\Connection->connect() at /home/www-data/Sylius/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:429
Doctrine\DBAL\Connection->getDatabasePlatformVersion() at /home/www-data/Sylius/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:389
Doctrine\DBAL\Connection->detectDatabasePlatform() at /home/www-data/Sylius/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:328
Doctrine\DBAL\Connection->getDatabasePlatform() at /home/www-data/Sylius/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php:763
Doctrine\ORM\Mapping\ClassMetadataFactory->getTargetPlatform() at /home/www-data/Sylius/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php:616
Doctrine\ORM\Mapping\ClassMetadataFactory->completeIdGeneratorMapping() at /home/www-data/Sylius/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php:174
ctory.php:332
.php:78
ory.php:216
AbstractClassMetadataFactory.php:115
ProxyCacheWarmer.php:69
egate.php:48
Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate->warmUp() at /home/www-data/Sylius/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:496
Symfony\Component\HttpKernel\Kernel->initializeContainer() at /home/www-data/Sylius/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:116
Symfony\Component\HttpKernel\Kernel->boot() at /home/www-data/Sylius/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:68
Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /home/www-data/Sylius/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:120
Symfony\Component\Console\Application->run() at /home/www-data/Sylius/bin/console:28
+ php ./bin/console sylius:install --env prod -vvv
Installing Sylius...
,
,;:,
`;;;.:`
`::;` :`
:::` ` .'++: ''. '.
`::: :+',;+' :+; `+.
:::: +' :' `+;
`:::, '+` ++ :+.`+; `++. ;+' '' ,++++.
,:::` `++'. .+: `+' `+; .+, ;+ +' +; ''
::::` ,+++. '+` :+. `+; `+, ;+ +' '+.
,. .:::: .++` `+: +' `+; `+, ;+ +' `;++;
`;;.:::` ::::: :+. '+,+. `+; `+, ;+ `+' .++
.;;;;;;::`.::::, +'` `++ `++' `+; `+: :+. `++' '. ;+
,;;;;;;;;;::::: .+++++` ;+, ++; ++, `'+++,'+' :++++,
,;;;;;;;;;:::` ;'
:;;;;;;;;;:, :.:+,
;;;;;;;;;: ;++,
Step 1 of 4. Checking system requirements.
------------------------------------------
PHP 版本和设置
+-------------------------+--------+
| Requirement | Status |
+-------------------------+--------+
| 时区 | OK! |
| Recommended PHP version | OK! |
| detect_unicode | OK! |
| session.auto_start | OK! |
+-------------------------+--------+
扩展组件
+-------------------------+--------+
| Requirement | Status |
+-------------------------+--------+
| 时区 | OK! |
| Recommended PHP version | OK! |
| detect_unicode | OK! |
| session.auto_start | OK! |
| JSON | OK! |
| Session: | OK! |
| Ctype | OK! |
| Tokenizer | OK! |
| SimpleXML | OK! |
| APC | OK! |
| PCRE | OK! |
| PHP XML | OK! |
| 多字节字符串 | OK! |
| Iconv | OK! |
| Exif | OK! |
| Intl | OK! |
| Fileinfo | OK! |
| 加速器 | OK! |
| PDO | OK! |
| GD | OK! |
| ICU | OK! |
+-------------------------+--------+
文件系统
+-------------------------+--------+
| Requirement | Status |
+-------------------------+--------+
| 时区 | OK! |
| Recommended PHP version | OK! |
| detect_unicode | OK! |
| session.auto_start | OK! |
| JSON | OK! |
| Session: | OK! |
| Ctype | OK! |
| Tokenizer | OK! |
| SimpleXML | OK! |
| APC | OK! |
| PCRE | OK! |
| PHP XML | OK! |
| 多字节字符串 | OK! |
| Iconv | OK! |
| Exif | OK! |
| Intl | OK! |
| Fileinfo | OK! |
| 加速器 | OK! |
| PDO | OK! |
| GD | OK! |
| ICU | OK! |
| 供应商 | OK! |
| 缓存 | OK! |
| 日志 | OK! |
+-------------------------+--------+
Success! Your system can run Sylius properly.
Step 2 of 4. Setting up the database.
-------------------------------------
Creating Sylius database for environment prod.
3/3 [????????????????????????????] 100% 8 secs
Loading sample data for environment prod.
Warning! This action will erase your database.
Continue? (y/N) y
Created "/home/www-data/Sylius/web/media" directory.
Created "/home/www-data/Sylius/web/media/image" directory.
1/1 [????????????????????????????] 100% 2 secs
Step 3 of 4. Shop configuration.
--------------------------------
Currency (press enter to use USD):
Adding US Dollar currency.
Adding locale.
Create your administrator account.
E-mail:[email protected]
Choose password:
Confirm password:
Passwords do not match!
Choose password:
Confirm password:
Passwords do not match!
Choose password:
Confirm password:
Passwords do not match!
Choose password:
Confirm password:
Administrator account successfully registered.
Step 4 of 4. Installing assets.
-------------------------------
Installing Sylius assets for environment prod.
Created "/home/www-data/Sylius/web/assets" directory.
1/1 [????????????????????????????] 100% < 1 sec
[OK] Sylius has been successfully installed.
You can now open your store at the following path under the website root: /.
+ cp -r /home/www-data/node_modules /home/www-data/Sylius/
+ npm install
+ npm run gulp
> @ gulp /home/www-data/Sylius
> gulp
[09:47:37] Using gulpfile /home/www-data/Sylius/Gulpfile.js
[09:47:37] Starting 'admin'...
[09:47:37] Finished 'admin' after 16 ms
[09:47:37] Starting 'shop'...
[09:47:37] Finished 'shop' after 3.29 ms
[09:47:37] Starting 'default'...
[09:47:37] Finished 'default' after 20 μs
[gulp-chug] Gulpfile, Gulpfile.js, contents is empty. Reading directly from disk...
[gulp-chug] Spawning process /home/www-data/Sylius/node_modules/gulp/bin/gulp.js with args /home/www-data/Sylius/node_modules/gulp/bin/gulp.js --gulpfile Gulpfile.js default --rootPath ../../../../web/assets/ --nodeModulesPath ../../../../node_modules/ from directory /home/www-data/Sylius/src/Sylius/Bundle/AdminBundle...
[gulp-chug] Gulpfile, Gulpfile.js, contents is empty. Reading directly from disk...
[gulp-chug] Spawning process /home/www-data/Sylius/node_modules/gulp/bin/gulp.js with args /home/www-data/Sylius/node_modules/gulp/bin/gulp.js --gulpfile Gulpfile.js default --rootPath ../../../../web/assets/ --nodeModulesPath ../../../../node_modules/ from directory /home/www-data/Sylius/src/Sylius/Bundle/ShopBundle...
[gulp-chug] (src/Sylius/Bundle/AdminBundle/Gulpfile.js) [09:47:38] [gulp-chug] (src/Sylius/Bundle/AdminBundle/Gulpfile.js) Using gulpfile /home/www-data/Sylius/src/Sylius/Bundle/AdminBundle/Gulpfile.js
[gulp-chug] (src/Sylius/Bundle/AdminBundle/Gulpfile.js) [09:47:38] Starting 'admin-js'...
[gulp-chug] (src/Sylius/Bundle/AdminBundle/Gulpfile.js) [09:47:38] Starting 'admin-css'...
[gulp-chug] (src/Sylius/Bundle/ShopBundle/Gulpfile.js) [09:47:38] [gulp-chug] (src/Sylius/Bundle/ShopBundle/Gulpfile.js) Using gulpfile /home/www-data/Sylius/src/Sylius/Bundle/ShopBundle/Gulpfile.js
[gulp-chug] (src/Sylius/Bundle/ShopBundle/Gulpfile.js) [09:47:38] [gulp-chug] (src/Sylius/Bundle/ShopBundle/Gulpfile.js) Starting 'shop-js'...
[gulp-chug] (src/Sylius/Bundle/AdminBundle/Gulpfile.js) [09:47:38] Starting 'admin-img'...
[gulp-chug] (src/Sylius/Bundle/ShopBundle/Gulpfile.js) [09:47:38] Starting 'shop-css'...
[gulp-chug] (src/Sylius/Bundle/ShopBundle/Gulpfile.js) [09:47:38] Starting 'shop-img'...
[gulp-chug] (src/Sylius/Bundle/AdminBundle/Gulpfile.js) [09:47:38] Finished 'admin-img' after 113 ms
[gulp-chug] (src/Sylius/Bundle/AdminBundle/Gulpfile.js) [09:47:38] Finished 'admin-css' after 138 ms
[gulp-chug] (src/Sylius/Bundle/AdminBundle/Gulpfile.js) [09:47:38] Finished 'admin-js' after 180 ms
[gulp-chug] (src/Sylius/Bundle/AdminBundle/Gulpfile.js) [09:47:38] Starting 'default'...
[gulp-chug] (src/Sylius/Bundle/AdminBundle/Gulpfile.js) [09:47:38] [gulp-chug] (src/Sylius/Bundle/AdminBundle/Gulpfile.js) Finished 'default' after 7.59 μs
[gulp-chug] Returning to parent gulpfile...
[gulp-chug] (src/Sylius/Bundle/ShopBundle/Gulpfile.js) [09:47:38] [gulp-chug] (src/Sylius/Bundle/ShopBundle/Gulpfile.js) Finished 'shop-css' after 152 ms
[gulp-chug] (src/Sylius/Bundle/ShopBundle/Gulpfile.js) [09:47:38] Finished 'shop-img' after 132 ms
[gulp-chug] (src/Sylius/Bundle/ShopBundle/Gulpfile.js) [09:47:38] Finished 'shop-js' after 194 ms
[gulp-chug] (src/Sylius/Bundle/ShopBundle/Gulpfile.js) [09:47:38] Starting 'default'...
[gulp-chug] (src/Sylius/Bundle/ShopBundle/Gulpfile.js) [09:47:38] [gulp-chug] (src/Sylius/Bundle/ShopBundle/Gulpfile.js) Finished 'default' after 7.33 μs
[gulp-chug] Returning to parent gulpfile...
+ cp -r /home/www-data/docker /home/www-data/Sylius/
+ chmod -R 777 Sylius/
整个项目前端后端构建完毕,再次执行下面docker命令启动应用
docker启动sylius
[root@localhost ~]# docker run -d --name=sylius -p 8011:8011 -p 85:80 -p 8000:8000 -v /home/www-data/:/home/www-data/ \
> -v /home/www-data/Sylius/docker/etc/nginx/conf.d:/etc/nginx/conf.d \
> ej52/alpine-nginx-php
a248ed6ae90f297440b00fbe953acf55925405016fc1fd341f0bba14910d3076
[root@localhost ~]# docker exec -it sylius sh
/ # cd /home/www-data/Sylius/
/home/www-data/Sylius # ls -la
total 628
drwxr-sr-x 15 root root 4096 Mar 6 09:47 .
drwsrwsrwt 6 root root 4096 Mar 6 09:45 ..
drwxr-sr-x 8 root root 4096 Mar 6 09:46 .git
-rw-r--r-- 1 root root 528 Mar 6 09:46 .gitignore
-rw-r--r-- 1 root root 1628 Mar 6 09:46 .travis.yml
-rw-r--r-- 1 root root 168980 Mar 6 09:46 CHANGELOG.md
-rw-r--r-- 1 root root 863 Mar 6 09:46 CONTRIBUTING.md
-rw-r--r-- 1 root root 965 Mar 6 09:46 Gulpfile.js
-rw-r--r-- 1 root root 1069 Mar 6 09:46 LICENSE
-rw-r--r-- 1 root root 221 Mar 6 09:46 PULL_REQUEST_TEMPLATE.md
-rw-r--r-- 1 root root 3431 Mar 6 09:46 README.md
-rw-r--r-- 1 root root 22423 Mar 6 09:46 UPGRADE.md
drwxr-sr-x 5 root root 4096 Mar 6 09:46 app
-rw-r--r-- 1 root root 184 Mar 6 09:46 behat.yml.dist
drwxr-sr-x 2 root root 4096 Mar 6 09:46 bin
-rw-r--r-- 1 root root 8139 Mar 6 09:46 composer.json
-rw-r--r-- 1 root root 303265 Mar 6 09:46 composer.lock
drwxr-sr-t 3 root root 16 Mar 6 09:47 docker
drwxr-sr-x 14 root root 4096 Mar 6 09:46 docs
drwxr-sr-x 6 root root 54 Mar 6 09:46 etc
drwxr-sr-x 22 root root 4096 Mar 6 09:46 features
drwxr-sr-t 596 root root 20480 Mar 6 09:47 node_modules
-rw-r--r-- 1 root root 693 Mar 6 09:46 package.json
-rw-r--r-- 1 root root 9083 Mar 6 09:46 phpspec.yml.dist
-rw-r--r-- 1 root root 723 Mar 6 09:46 phpunit.xml.dist
drwxr-sr-x 3 root root 19 Mar 6 09:46 src
drwxr-sr-x 6 root root 74 Mar 6 09:46 tests
drwxr-sr-x 4 root root 100 Mar 6 09:46 var
drwxr-sr-x 64 root root 4096 Mar 6 09:46 vendor
drwxr-sr-x 5 root root 4096 Mar 6 09:47 web
/home/www-data/Sylius # php ./bin/console server:start 0.0.0.0:8000
[OK] Web server listening on http://0.0.0.0:8000
/home/www-data/Sylius #
浏览器访问http://10.0.0.10:8000/app.php,此步骤比较重要,会自动在web/media下面生成一个cache目录,缓存图片,以便nginx访问的时候,首页不会找不到商品图片
/home/www-data/Sylius #
/home/www-data/Sylius # cd web/media/
/home/www-data/Sylius/web/media # ls -la
total 8
drwxr-sr-x 4 root root 30 Mar 6 09:53 .
drwxr-sr-x 5 root root 4096 Mar 6 09:47 ..
drwxr-sr-x 3 root root 42 Mar 6 09:53 cache
drwxr-sr-x 100 root root 4096 Mar 6 09:46 image
/home/www-data/Sylius/web/media #
当首次访问nginx监听地址时,无法访问,看后台日志知道,var下面的logs没有权限,执行下面命令
/home/www-data/Sylius/web/media # cd /home/www-data/Sylius/
/home/www-data/Sylius # chmod -R 777 var/
/home/www-data/Sylius #
http://10.0.0.10:8011 前台地址
http://10.0.0.10:8011/admin 默认登陆名sylius sylius
程序调试命令参考如下
Available commands:
help Displays help for a command
list Lists commands
assets
assets:install Installs bundles web assets under a public web directory
cache
cache:clear Clears the cache
cache:pool:clear Clears cache pools
cache:warmup Warms up an empty cache
config
config:dump-reference Dumps the default configuration for an extension
debug
debug:config Dumps the current configuration for an extension
debug:container Displays current services for an application
debug:event-dispatcher Displays configured listeners for an application
debug:payum:gateway [payum:gateway:debug]
debug:router Displays current routes for an application
debug:swiftmailer [swiftmailer:debug] Displays current mailers for an application
debug:translation Displays translation messages information
debug:twig Shows a list of twig functions, filters, globals and tests
debug:winzou:state-machine
doctrine
doctrine:cache:clear-collection-region Clear a second-level cache collection region.
doctrine:cache:clear-entity-region Clear a second-level cache entity region.
doctrine:cache:clear-metadata Clears all metadata cache for an entity manager
doctrine:cache:clear-query Clears all query cache for an entity manager
doctrine:cache:clear-query-region Clear a second-level cache query region.
doctrine:cache:clear-result Clears result cache for an entity manager
doctrine:cache:contains Check if a cache entry exists
doctrine:cache:delete Delete a cache entry
doctrine:cache:flush [doctrine:cache:clear] Flush a given cache
doctrine:cache:stats Get stats on a given cache provider
doctrine:database:create Creates the configured database
doctrine:database:drop Drops the configured database
doctrine:database:import Import SQL file(s) directly to Database.
doctrine:ensure-production-settings Verify that Doctrine is properly configured for a production environment.
doctrine:fixtures:load Load data fixtures to your database.
doctrine:generate:entities [generate:doctrine:entities] Generates entity classes and method stubs from your mapping information
doctrine:mapping:convert [orm:convert:mapping] Convert mapping information between supported formats.
doctrine:mapping:import Imports mapping information from an existing database
doctrine:mapping:info
doctrine:migrations:diff Generate a migration by comparing your current database to your mapping information.
doctrine:migrations:execute Execute a single migration version up or down manually.
doctrine:migrations:generate Generate a blank migration class.
doctrine:migrations:latest Outputs the latest version number
doctrine:migrations:migrate Execute a migration to a specified version or the latest available version.
doctrine:migrations:status View the status of a set of migrations.
doctrine:migrations:version Manually add and delete migration versions from the version table.
doctrine:query:dql Executes arbitrary DQL directly from the command line.
doctrine:query:sql Executes arbitrary SQL directly from the command line.
doctrine:schema:create Executes (or dumps) the SQL needed to generate the database schema
doctrine:schema:drop Executes (or dumps) the SQL needed to drop the current database schema
doctrine:schema:update Executes (or dumps) the SQL needed to update the database schema to match the current mapping metadata.
doctrine:schema:validate Validate the mapping files.
fos
fos:oauth-server:clean Clean expired tokens
gaufrette
gaufrette:filesystem:keys List all the file keys of a filesystem
generate
liip
liip:imagine:cache:remove Remove cache for given paths and set of filters.
liip:imagine:cache:resolve Resolve cache for given path and set of filters.
lint
lint:twig Lints a template and outputs encountered errors
lint:yaml Lints a file and outputs encountered errors
orm
payum
payum:security:create-capture-token
payum:security:create-notify-token
payum:status Allows to get a payment status.
router
router:match Helps debug routes by simulating a path info match
security
security:check Checks security issues in your project dependencies
security:encode-password Encodes a password.
server
server:run Runs PHP built-in web server
server:start Starts PHP built-in web server in the background
server:status Outputs the status of the built-in web server for the given address
server:stop Stops PHP's built-in web server that was started with the server:start command
swiftmailer
swiftmailer:email:send Send simple email message
swiftmailer:spool:send Sends emails from the spool
sylius
sylius:cancel-unpaid-orders Removes order that have been unpaid for a configured period. Configuration parameter - sylius_order.order_expiration_period.
sylius:debug:resource Debug resource metadata.
sylius:fixtures:list Lists available fixtures
sylius:fixtures:load Loads fixtures from given suite
sylius:install Installs Sylius in your preferred environment.
sylius:install:assets Installs all Sylius assets.
sylius:install:check-requirements Checks if all Sylius requirements are satisfied.
sylius:install:database Install Sylius database.
sylius:install:sample-data Install sample data into Sylius.
sylius:install:setup Sylius configuration setup.
sylius:oauth-server:create-client Creates a new client
sylius:remove-expired-carts Removes carts that have been idle for a configured period. Configuration parameter - sylius_order.cart_expires_after.
sylius:theme:assets:install Installs themes web assets under a public web directory
sylius:theme:list Shows list of detected themes.
sylius:user:demote Demotes a user by removing a role.
sylius:user:promote Promotes a user by adding roles.
translation
translation:update Updates the translation file