# Useful Commands
# CORE
Import sql file to local database
psql -h 127.0.0.1 -U intersective practera_main < ./webroot/files/sqls/db.sqlExport local database to sql file
pg_dump -h 127.0.0.1 -U intersective --exclude-table=cake_sessions --exclude-table=core_user_action_logs practera_main > practera.sqlCheck docker containers
docker psEnter the docker container on local
docker exec -it practera-web bash cd app # go into the app directory to run the following commandsRun migrations
# inside the docker container /app Console/cake Migrations.migration run allRevert the last migration
# inside the docker container /app Console/cake Migrations.migration run downGenerate a new migration file
# inside the docker container /app Console/cake Migrations.migration generateStart workers(queue) on local
# inside the docker container /app Console/cake resque startAllStart email queue(send emails to MailTrap)
# inside the docker container /app Console/cake resque start —queue email