Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
feat(env): change env variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
jackcmeyer committed Feb 12, 2020
1 parent 7f0fe7f commit cddc812
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1 +1 @@
REACT_APP_HOSPITALRUN_SERVER=http://0.0.0.0:3001
REACT_APP_HOSPITALRUN_API=http://0.0.0.0:3001
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ __Note: The following instructions are for connecting to HospitalRun Server duri

1. Configure [HospitalRun Server](https://github.com/HospitalRun/hospitalrun-server)
2. Start the HospitalRun Development Server
3. Copy the `.env.example` file to `.env.local` or `.env`
4. Change the `REACT_APP_HOSPITALRUN_SERVER` variable to point to the HospitalRun Development Server.
3. Copy the `.env.example` file to `.env`
4. Change the `REACT_APP_HOSPITALRUN_API` variable to point to the HospitalRun Development Server.

## Working on an Issue

Expand Down
2 changes: 1 addition & 1 deletion src/config/pouchdb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function createDb(name: string) {
}

const db = new PouchDB(name)
db.sync(`${process.env.REAC_APP_HOSPITALRUN_SERVER}/_db/${name}`, {
db.sync(`${process.env.REACT_APP_HOSPITALRUN_API}/_db/${name}`, {
live: true,
retry: true,
}).on('change', (info) => {
Expand Down

0 comments on commit cddc812

Please sign in to comment.