-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
dd38d29
commit 4cec478
Showing
8 changed files
with
21,660 additions
and
12,215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# How to Deploy Indigo-Service Locally | ||
|
||
Follow these steps to deploy indigo-service on your local machine. | ||
|
||
## Deployment Steps | ||
|
||
1. Set up a local environment variable `HOST_IP` on your machine. Use the following commands based on your OS: | ||
|
||
For Windows: `set HOST_IP=localhost` | ||
For MacOS/Unix: `export HOST_IP=localhost` | ||
|
||
2. In the `ui` folder of the frontend part, find the `.env` file and set up the following variables: | ||
|
||
``` | ||
REACT_APP_API_POSTGRES=/v2 | ||
REACT_APP_API_ELASTIC=/v3 | ||
``` | ||
|
||
3. Build the `ui` folder using `npm` by running the following command: | ||
|
||
``` | ||
npm build | ||
``` | ||
|
||
**Note**: Don't forget to remove the old build folder if it exists. | ||
|
||
4. Open a command prompt or terminal at the root of `indigo-service`, and use Docker to build images and run them with | ||
the following commands: | ||
|
||
``` | ||
docker-compose build --no-cache | ||
docker-compose up -d | ||
``` | ||
|
||
Now you have successfully deployed indigo-service on your local machine! | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.