From 9741d854fe6bb55677dae374d7cc70342a94e326 Mon Sep 17 00:00:00 2001 From: Carlos Castillo Date: Fri, 22 Nov 2024 21:30:53 +0100 Subject: [PATCH] Add render deployment configuration --- .vscode/settings.json | 10 ++++------ README.md | 3 ++- render.yml | 30 ++++++++++++++++++++++++++++++ 3 files changed, 36 insertions(+), 7 deletions(-) create mode 100644 render.yml diff --git a/.vscode/settings.json b/.vscode/settings.json index ac78b1a..c53ed94 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -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", @@ -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, @@ -26,5 +24,5 @@ "javascript.updateImportsOnFileMove.enabled": "always", "typescript.updateImportsOnFileMove.enabled": "always", "javascript.suggest.paths": true, - "typescript.suggest.paths": true, + "typescript.suggest.paths": true } diff --git a/README.md b/README.md index a9a6023..099ac87 100644 --- a/README.md +++ b/README.md @@ -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)_. diff --git a/render.yml b/render.yml new file mode 100644 index 0000000..f982cdb --- /dev/null +++ b/render.yml @@ -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"