2017 © Pedro Peláez
 

project compo-plan

Training symfony app based on compo-plan app

image

vladimir/compo-plan

Training symfony app based on compo-plan app

  • Thursday, June 21, 2018
  • by comporu
  • Repository
  • 3 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 100 % Grown

The README.md

Demo symfony app based on compo-plan app with docker / built for compo programmers / dev env

Build Status buddy pipeline, (*1)

Docker and docker-compose are required to be installed, (*2)

https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-docker-ce, (*3)

https://docs.docker.com/compose/install/#install-compose, (*4)

Install via composer, (*5)

composer create-project vladimir/compo-plan --stability dev, (*6)

Install via GitHub, (*7)

git clone git@github.com:comporu/compo-plan.git, (*8)

install dependencies composer install, (*9)

Start up containers, (*10)

rights of the var/ directory must be 777 before, (*11)

docker-compose up in a new terminal, (*12)

or, (*13)

docker-compose up -d in a same terminal (Detached mode: Run containers in the background), (*14)

Create DB, (*15)

docker container exec compo-plan-php php bin/console doctrine:schema:update --force, (*16)

Create super user, (*17)

docker container exec compo-plan-php php bin/console fos:user:create root --super-admin test@test.ru 11111111, (*18)

this command will create super user with login root and password 11111111, (*19)

Welcome, (*20)

Type http://localhost:8585/app_dev.php in browser address bar, (*21)

Dashboard login/pass are as you created on previous step:, (*22)

login: root, (*23)

pass: 11111111, (*24)

Notes, (*25)

parameters.yml.dist, (*26)

parameters.yml.dist has been configured for working with docker mysql container, (*27)

Leave default database parameters while installing dependencies with composer, (*28)

Rights, (*29)

var/cache var/sessions var/logs folders required to have 777 rights, (*30)

Docker, (*31)

start up containers, (*32)

docker-compose up, (*33)

docker-compose up --build, (*34)

shut down containers, (*35)

docker-compose down, (*36)

delete all containers with cache and networks, (*37)

docker system prune -a, (*38)

Console commands, (*39)

Since we are in docker containers, we need to run console commands in php container., (*40)

So ours lovely command php bin/console <whatever> must be turned to, (*41)

docker container exec compo-plan-php php bin/console <whatever>, (*42)

compo-plan-php is an alias for ours php container. see docker-compose.yml, (*43)

The Versions