-
Notifications
You must be signed in to change notification settings - Fork 36
Production Setup ARCHIVED
Koen Teuwen edited this page Jul 16, 2021
·
1 revision
- Clone the repository.
- Install dependencies using composer:
php composer.phar install - Create a new MySQL database.
- Copy
config/autoload/doctrine.local.production.php.disttoconfig/autoload/doctrine.local.phpand configure the database settings in it. - Give the webserver's user read and write permissions to the
data/andpublic/data/directories. - Run
./web orm:schema-tool:createto populate the database. - Copy
config/autoload/local.php.disttoconfig/autoload/local.php - Run
php composer.phar install -oto generate a composer classmap - Run
genclassmap.shto generate module class maps - Set the environment variable
APP_ENVtoproductionin your webserver configuration - Set a cronjob for generating the photo of the week
0 0 * * 1 ./web photo weeklyphoto >/dev/null 2>&1 - Set a cronjob for OASE updates
- run
./web orm:generate-proxies
After upgrading to a new version complete the following steps (not all steps may be required)
- Run
php composer.phar install -oto generate a composer classmap - Run
./genclassmap.shto generate module class maps - Run
./web orm:schema-tool:update(if needed) - Run
./web orm:generate-proxies - Update the css files (if needed)
- Clear PHP's APC cache. (if enabled) (you can use
apc_clear_cache();andapc_clear_cache('web');in php interactive mode, ran byphp -a)
- Contributing
- Architecture
- Components
- View helpers
- Sub-projects
- Archive