Skip to content

Commit

Permalink
[docs] update deployment instructions
Browse files Browse the repository at this point in the history
add instruction to build html files
update .gitignore
  • Loading branch information
Seburan committed Jul 13, 2023
1 parent 3ca8b6e commit 6395145
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
16 changes: 15 additions & 1 deletion docs/deploy-to-linux-docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ mkcert -install

### Setup .env file

Edit `.env` file to match the `${SERVICE}_HOST` parameter to your the content of the `/etc/hosts` configuration.
Edit `.env` file to match the `${SERVICE}_HOST` parameter to the content of the `/etc/hosts` configuration.

Example with the domain `privacy-sandbox-demos-${SERVICE}.dev`

Expand Down Expand Up @@ -136,6 +136,20 @@ $ npm install
$ npm run cert
```

### Build html documentation

Build the html static files that will be served by the home web server. The build process uses `docusaurus`.

From the project root folder, **navigate to `services/home**` and run :

```sh
# Download package and dependencies (docusaurus)
npm install

# Build the html static files from the markdown docs.
npm run build
```

### Run start scripts

```sh
Expand Down
6 changes: 2 additions & 4 deletions services/home/.gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# Dependencies
/node_modules

# Production
# /build
# commit build for easy to deploy
!/build
# Production (do not commit build files)
/build

# Generated files
.docusaurus
Expand Down

0 comments on commit 6395145

Please sign in to comment.