amsdard / symfony-standard
The "Symfony Standard Edition" distribution
v3.3
2017-11-24 06:45 UTC
Requires
- php: >=5.5.9
- amsdard/composer-load-env: ^1.0
- doctrine/doctrine-bundle: ^1.6
- doctrine/orm: ^2.5
- incenteev/composer-parameter-handler: ^2.0
- sensio/distribution-bundle: ^5.0.19
- sensio/framework-extra-bundle: ^3.0.2
- sensio/generator-bundle: ^3.0
- symfony/assetic-bundle: ^2.8
- symfony/monolog-bundle: ^3.1.0
- symfony/phpunit-bridge: ^3.0
- symfony/polyfill-apcu: ^1.0
- symfony/swiftmailer-bundle: ^2.3.10
- symfony/symfony: 3.3.*
- twig/twig: ^1.0||^2.0
This package is not auto-updated.
Last update: 2024-12-22 04:58:27 UTC
README
See DOCS for more details.
Requirements
- configure Your local projects enrironment
- [optional] install composer globally global composer command
- make sure You have YAKE installed
Create project
- git only way
git clone git@github.com:amsdard/symfony-standard.git project-name
# cd to project directory
yake composer install
- global
composer
way
composer create-project amsdard/symfony-standard project-name
First project install
yake configure-docker
# configure each "./docker/*/config.env"
yake up
yake console assetic:watch # run in background
- directory name
project-name
will become Your domain name:project-name.app
and Your container's image tag namespace - remove YAKE
configure-docker
task fromYakefile
- update
composer.json
by Your project name, description - do not use
require-dev
in composer.json (keep common vendors) - if You want to use local composer (based on PHP image) - RECOMMENDED:
curl -fsSL 'https://getcomposer.org/composer.phar' -o ./composer.phar
and replace YAKE composer task by:
composer: $BIN php ./composer.phar --optimize-autoloader $CMD
- run
yake console assetic:watch
in background to work with assets yake console assetic:dump --env=prod --no-debug
before deploy
Deploy (dev / rancher)
yake push php
yake push nginx
- import
./deploy/rancher/docker-compose.yml
into Rancher + complete ENVs - make sure
mysql
works on specific host (Scheduling) - make sure
nginx
has Health Check enabled
Deploy (prod)
yake push php
yake push nginx
- import
./deploy/prod/docker-compose.yml
into server + copy ENV files fromdocker
directory docker-compose pull --parallel --quiet
docker-compose up -d --force-recreate