-
Notifications
You must be signed in to change notification settings - Fork 3
Useful commands
Kashike edited this page Jul 19, 2015
·
1 revision
Run local testing server
php app/console server:start [0.0.0.0:8000] # Host:port optional
Create database (skip if already made)
php app/console doctrine:database:create
Run migrations
php app/console doctrine:mongodb:schema:create
Create document getters/setters
php app/console doctrine:mongodb:generate:documents KorobiWebBundle
Generate database hydrators
php app/console doctrine:mongodb:generate:hydrators
More information
php app/console doctrine:mongodb help
The items below are mostly based on guess-work:
Compile assets
php app/console assetic:dump
Watch assets and auto-compile
php app/console assetic:watch
Run tests
NB: Tests are in the src directory but the PHPUnit config is in the app directory.
cd app/; phpunit