Skip to content

Latest commit

 

History

History
48 lines (34 loc) · 1.24 KB

File metadata and controls

48 lines (34 loc) · 1.24 KB

Aa+ installation

Make sure that you're running PHP 5.6:

php -v

Create a MariaDB (recommened) or a MySql database; you'll need the database host, name, user and password shortly.

Clone the code:

git clone --branch=develop https://github.com/mtm-aarhus/aaplus
cd aaplus

Install composer packages (you'll be asked for database and mailer settings during the installation):

SYMFONY_ENV=prod composer install --no-dev --optimize-autoloader

Install assets and update the database schema:

SYMFONY_ENV=prod app/console assets:install --symlink
SYMFONY_ENV=prod app/console cache:clear --no-warmup
SYMFONY_ENV=prod app/console cache:warmup
SYMFONY_ENV=prod app/console doctrine:migrations:migrate --no-interaction
SYMFONY_ENV=prod app/console aaplus:post-migrate
SYMFONY_ENV=prod app/console aaplus:post-migrate:20160711133430

Set file system permissions: https://symfony.com/doc/2.7/setup/file_permissions.html

Create a super administrator user:

SYMFONY_ENV=prod app/console fos:user:create --super-admin

Finally, set up a web server as described on https://symfony.com/doc/2.7/setup/web_server_configuration.html.