From 51deb85a89d076ee17d923e6cf1d51fb54e6e03a Mon Sep 17 00:00:00 2001 From: OMKAR AGRAWAL Date: Mon, 16 Nov 2020 23:29:40 +0530 Subject: Update Readme to include DB_SSL and MAIL_SSL --- README.md | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index b0424c2..33af145 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -

+

@@ -57,8 +57,10 @@ After setting up the docker container we recommend you to set up an NGINX revers -e DB_USER= \ -e DB_PASSWORD= \ -e DB_DATABASE= \ + -e DB_SSL=false \ -e IS_CREATION_ENABLED=true \ -e CONNECT_WITH_FRANZ=true \ + -e MAIL_SSL=true/false \ -p :80 \ -v :/config \ -v :/usr/src/app/database \ @@ -84,10 +86,12 @@ After setting up the docker container we recommend you to set up an NGINX revers - DB_USER= - DB_PASSWORD= - DB_DATABASE= + - DB_SSL=true/false - IS_CREATION_ENABLED=true/false - CONNECT_WITH_FRANZ=true/false - IS_REGISTRATION_ENABLED=true/false - - IS_DASHBOARD_ENABLED=true/false + - IS_DASHBOARD_ENABLED=true/false + - MAIL_SSL=true/false volumes: - :/config - :/usr/src/app/database @@ -104,15 +108,24 @@ For more information on configuring the Docker image, visit the Docker image rep 1. Clone this repository 2. Install the [AdonisJS CLI](https://adonisjs.com/) 3. Copy `.env.example` to `.env` and edit the [configuration](#configuration) to your needs -4. Run `npm install` to install local dependencies -5. Run the database migrations with +4. Have env DB_SSL=true only if your database is postgres and it is hosted online on platforms like GCP, AWS, etc +5. Run `npm install` to install local dependencies +6. Run the database migrations with ```js adonis migration:run ``` -6. Start the server with +7. Start the server with ```js adonis serve --dev ``` +8. If on previous step it does not run the server then run with + ```js + npm start + ``` + or + ```js + node server.js + ``` ## Configuration franz-server's configuration is saved inside the `.env` file. Besides AdonisJS's settings, ferdi-server has the following custom settings: -- cgit v1.2.3-54-g00ecf