useful tipps for development and its environment.
php bin/console server:run
to start the symfony server
doctrine:migrations:diff
to generate the migration class
doctrine:migrations:migrate
to execute all migrations
doctrine:fixtures:load
to load fixtures
composer install
to install backend dependencies
yarn install && yarn encore dev
to install & build frontend dependencies
phpunit
to execute the unit tests
vendor/bin/php-cs-fixer fix
to fix code style issues
dep deploy
to deploy
login with [email protected]
, asdf
yarn encore dev-server
starts the frontend dev server
test error templates inside TwigBundle/views by accessing /_error/404
and /_error/500
server must fulfil requirements of composer.json
if you deploy the first time, while deploy:composer
is running, set the .env
file in /shared/.env
do not forget to setup cronjobs as specified in the CronJobController
ssh-copy-id -i ~/.ssh/id_rsa.pub username@domain
to add ssh key
cat ~/.ssh/id_rsa.pub
to query the active ssh key
ssh-keygen -t rsa -b 4096 -C "username@domain" && eval $(ssh-agent -s) && ssh-add ~/.ssh/id_rsa
generate a new key & add it to ssh