Skip to content

Commit

Permalink
Updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Ygnas committed May 29, 2022
1 parent 3d39507 commit dcae4de
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ Allowing user to view the readings, delete them or add new ones.

## Local Development setup

Inside application.conf comment and uncomment shown lines.
Navigate to project directory and run:

```sh
play idealize
```

Inside **application.conf** comment and uncomment shown lines.

```sh
application.mode=dev
Expand All @@ -15,13 +21,31 @@ application.mode=dev
db.default=mem
#db=${SECRET}
```

## Deploy locally

Change **application.conf** as above

And run:

```sh
play run
```

## Production setup

Set up environment variable
Inside **application.conf** comment and uncomment shown lines.

```sh
#application.mode=dev
application.mode=prod

#db.default=mem
db=${SECRET}
```

Set up environment variable on your local machine or server

```sh
SECRET=yourPostgreSQLlink
```
Expand Down

0 comments on commit dcae4de

Please sign in to comment.