-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #89 from funidata/devops
Configuration updates to enable production use
- Loading branch information
Showing
10 changed files
with
44 additions
and
22 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 |
---|---|---|
@@ -1,16 +1,14 @@ | ||
const { | ||
DATABASE_NAME, | ||
DATABASE_USERNAME, | ||
DATABASE_PASSWORD, | ||
DATABASE_HOST, | ||
} = process.env; | ||
const { DATABASE_NAME, DATABASE_USERNAME, DATABASE_PASSWORD, DATABASE_HOST } = process.env; | ||
|
||
const commonConfig = { | ||
username: DATABASE_USERNAME, | ||
password: DATABASE_PASSWORD, | ||
database: DATABASE_NAME, | ||
host: DATABASE_HOST, | ||
dialect: "postgres", | ||
}; | ||
|
||
module.exports = { | ||
development: { | ||
username: DATABASE_USERNAME, | ||
password: DATABASE_PASSWORD, | ||
database: DATABASE_NAME, | ||
host: DATABASE_HOST, | ||
dialect: 'postgres', | ||
}, | ||
}; | ||
development: commonConfig, | ||
production: commonConfig, | ||
}; |
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 |
---|---|---|
@@ -1,11 +1,13 @@ | ||
# Using alpine because GitHub artifact upload is very slow for big images... | ||
FROM node:18.16-alpine | ||
|
||
USER node | ||
|
||
# Install dependencies. | ||
WORKDIR /usr/src/app | ||
COPY package.json package-lock.json ./ | ||
RUN npm ci | ||
|
||
COPY . . | ||
|
||
CMD npm start | ||
CMD npm --offline start |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
proseWrap: never |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Hosting | ||
|
||
## Services | ||
|
||
Hybridilusmu uses PostgreSQL database for persistence. Currently we are developing on version 14.7 but any fairly recent version should work. | ||
|
||
## Server Configuration | ||
|
||
The environment variables below are required | ||
|
||
| Name | Description | | ||
| --- | --- | | ||
| `SLACK_APP_TOKEN` | App-Level Token with the `connections:write` scope. Used to authenticate the WebSocket connection (found under _Basic Information > App-Level Tokens_). | | ||
| `SLACK_BOT_TOKEN` | Bot User OAuth Token (found under _OAuth & Permissions_). | | ||
| `SLACK_SIGNING_SECRET` | Signing Secret (found under _Basic Information > App Credentials_). | | ||
| `DATABASE_USERNAME` | PostgreSQL username. | | ||
| `DATABASE_PASSWORD` | PostgreSQL password. | | ||
| `DATABASE_NAME` | PostgreSQL database name. | | ||
| `DATABASE_HOST` | PostgreSQL hostname. | |
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