Skip to content

Commit

Permalink
Add render deployment configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
carloscasalar committed Nov 22, 2024
1 parent a9983a8 commit 9741d85
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 7 deletions.
10 changes: 4 additions & 6 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"eslint.workingDirectories": ["client"],
"editor.codeActionsOnSave": {
"source.organizeImports": true,
"source.fixAll.eslint": true
"source.organizeImports": "explicit",
"source.fixAll.eslint": "explicit"
},
"eslint.validate": [
"javascript",
Expand All @@ -12,9 +12,7 @@
],
"eslint.format.enable": true,
"eslint.run": "onSave",
"cSpell.words": [
"reduxjs"
],
"cSpell.words": ["reduxjs"],
// Makes vscode aware of import aliases defined in client/tsconfig.json
"typescript.tsdk": "client/node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true,
Expand All @@ -26,5 +24,5 @@
"javascript.updateImportsOnFileMove.enabled": "always",
"typescript.updateImportsOnFileMove.enabled": "always",
"javascript.suggest.paths": true,
"typescript.suggest.paths": true,
"typescript.suggest.paths": true
}
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Night Watch Planner v0.1.0 [![CircleCI](https://circleci.com/gh/carloscasalar/night-watch-planner/tree/master.svg?style=svg)](https://circleci.com/gh/carloscasalar/night-watch-planner/tree/master) [![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/template/mY7odo?referralCode=VyZXTm)
# Night Watch Planner v0.1.0 [![CircleCI](https://circleci.com/gh/carloscasalar/night-watch-planner/tree/master.svg?style=svg)](https://circleci.com/gh/carloscasalar/night-watch-planner/tree/master)
[![Deploy to Render](https://render.com/images/deploy-to-render-button.svg)](https://render.com/deploy?repo=https://github.com/carloscasalar/night-watch-planner)

Just a Night watch planner optimizer for use in RPGs like _[Pathfinder](http://paizo.com/pathfinder)_.

Expand Down
30 changes: 30 additions & 0 deletions render.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# See https://docs.render.com/configure-environment-variables
# and https://docs.render.com/environment-variables
services:
- type: web
name: night-watch-planner
runtime: docker
repo: https://github.com/carloscasalar/night-watch-planner
plan: free
envVars:
- key: NWP_CLIENT_URL
type: pserv
name: nwp
envVarKey: RENDER_EXTERNAL_URL
region: oregon
dockerContext: .
dockerfilePath: ./Dockerfile
rootDir: optimizer
- type: web
name: nwp
runtime: static
repo: https://github.com/carloscasalar/night-watch-planner
envVars:
- key: VITE_PLAN_REST_API_HOST
type: pserv
name: night-watch-planner
envVarKey: RENDER_EXTERNAL_URL
buildCommand: npm ci; npm run build
staticPublishPath: dist
rootDir: client
version: "1"

0 comments on commit 9741d85

Please sign in to comment.