aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiroslav Prasil <[email protected]>2018-08-23 21:59:23 +0100
committerMiroslav Prasil <[email protected]>2018-08-23 21:59:23 +0100
commit575f7013901a978b5ea49b21998007406f173d60 (patch)
tree2081ce078956754b2b600bd4ccc1f44986b75c3d
parentef2413a5aa3ca20005558087212ce572b6c26f17 (diff)
parent335099cd300395863a2435277d51b0852faa1040 (diff)
downloadvaultwarden-575f7013901a978b5ea49b21998007406f173d60.tar.gz
vaultwarden-575f7013901a978b5ea49b21998007406f173d60.zip
Merge branch 'master' into alpine
-rw-r--r--BUILD.md33
1 files changed, 17 insertions, 16 deletions
diff --git a/BUILD.md b/BUILD.md
index 0dcc89fc..27501245 100644
--- a/BUILD.md
+++ b/BUILD.md
@@ -17,28 +17,29 @@ cargo build --release
When run, the server is accessible in [http://localhost:80](http://localhost:80).
### Install the web-vault
-Download the latest official release from the [releases page](https://github.com/bitwarden/web/releases) and extract it.
-
-Modify `web-vault/settings.Production.json` to look like this:
-```json
-{
- "appSettings": {
- "apiUri": "/api",
- "identityUri": "/identity",
- "iconsUri": "/icons",
- "stripeKey": "",
- "braintreeKey": ""
- }
-}
+Clone the git repository at [bitwarden/web](https://github.com/bitwarden/web) and checkout the latest release tag (e.g. v2.1.1):
+```sh
+# clone the repository
+git clone https://github.com/bitwarden/web.git web-vault
+cd web-vault
+# switch to the latest tag
+git checkout "$(git tag | tail -n1)"
+```
+
+Apply the patch file from `docker/set-vault-baseurl.patch`:
+```sh
+# In the Vault repository directory
+git apply /path/to/bitwarden_rs/docker/set-vault-baseurl.patch
```
-Then, run the following from the `web-vault` directory:
+Then, build the Vault:
```sh
+npm run sub:init
npm install
-npx gulp dist:selfHosted
+npm run dist
```
-Finally copy the contents of the `web-vault/dist` folder into the `bitwarden_rs/web-vault` folder.
+Finally copy the contents of the `build` folder into the `bitwarden_rs/web-vault` folder.
# Configuration
The available configuration options are documented in the default `.env` file, and they can be modified by uncommenting the desired options in that file or by setting their respective environment variables. Look at the README file for the main configuration options available.