Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 1.27 KB

DEVELOPERS.md

File metadata and controls

32 lines (26 loc) · 1.27 KB

Developers

useful tipps for development and its environment.

Useful commands

symfony-cmd

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

cmd

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

develop

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

deploy

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

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