composer install
- Make a copy of
.env
and rename it to.env.local
- Update it with your database credentials
If you haven't created a database, you can create it with doctrine:
php bin/console doctrine:database:create
php bin/console doctrine:schema:update --dump-sql
- prints the raw sql queries to be executedphp bin/console doctrine:schema:update --force
- executes the queries to sync the database with its entities
symfony server:start
(Note: This recipe uses the Symfony binary, so it may not work if you're using another server like Apache/NgInx to serve your files. Installing the binary is necessary to use this recipe)
php bin/console cache:clear --env=prod
- clears and warmup/refresh cache