Git Product home page Git Product logo

symfony5php8demo's Introduction

start

cp .env .env.local
cp .env.test .env.test.local

edit file .env.local for docker variables

edit file .env.test.local for docker test variables

launch the container with the environment variables

env $(cat .env.local | command grep -i ^[A-Z] | xargs) docker-compose up -d

alternatively, MakeFile has been added to more easily manage console operations.
To start the project under development:

make start

To start build the project:

make build

To stop containers:

make stop

To stop containers and delete volumes:

make stop-with-volumes

To get the php service shell and run the commands from within:

make shell

install composer dependencies of the project

docker-compose run --rm -u www-data php php -d memory_limit=-1 /usr/local/bin/composer install

another interesting command, similar to the previous one, to be able to execute commands inside the container with the appropriate user is this:

docker exec --user=www-data nome_container command_to_exec

or:

make dependencies

Database creation and management

docker exec -it php_container_name /bin/bash
bin/console doctrine:database:create
bin/console doctrine:schema:validate
bin/console doctrine:schema:create

```bash
bin/console doctrine:schema:update --force

symfony5php8demo's People

Contributors

victorcorreae avatar

Watchers

James Cloos avatar fabiogiorgione avatar  avatar Marco Bimbati avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.