From 352c7ae240491341c0a2dfc7e6046ca3f9524e66 Mon Sep 17 00:00:00 2001 From: Asep Bagja Priandana Date: Wed, 12 Jul 2017 18:33:47 +0700 Subject: [PATCH] Adding new informations in documentation. Referring to issue #13, I'm adding new information to remind user to get back to the root application directory before running composer install. I also added the information about how to run the application. --- README.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cc1a3dd..25ffc55 100644 --- a/README.md +++ b/README.md @@ -27,21 +27,32 @@ cd tania Second, setup your database and mailer parameters in `app/config/parameters.yml`. You can duplicate and rename the `app/config/parameters.yml.dist` file. -Third, setup the web application: +Third, don't forget to go back to the application root directory before following these steps to setup the web application: ``` curl -sS https://getcomposer.org/installer | php php composer.phar install ``` -The last, setup the database tables: +Fourth, setup the database tables: ``` php bin/console --no-interaction doctrine:migrations:migrate ``` +The last, you can run Tania in development mode (on your PC or laptop) by using this command: + +``` +php bin/console server:run +``` + +Tania will run on `http://localhost:8000`. + +You can also run Tania in production mode (on your server) by referring to this [Symfony documentation](http://symfony.com/doc/current/setup/web_server_configuration.html). + Done! You can start to use Tania. + ## Installation notes If you use MySQL 5.7, you should disable `ONLY_FULL_GROUP_BY`. You can refer to this [StackOverflow discussion](https://stackoverflow.com/questions/23921117/disable-only-full-group-by).