Comments (3)
hey Tom :-)
thanks for considering this use case (i.e. easy/fast deployment)! I just got Placemark running on Render and just wanted to document the few adjustments/steps in case it could be useful to others.
my fork lives here. changes:
- in the render.yaml:
- remove all
previews*
settings - change the
plan
settings tostarter
- remove the
fromGroup
-- I ended up manually adding environment variables on render (more on this below) - you can see the diff here
- remove all
- I set ~20 environment variables by hand in render -- just enough to get the service up & running and to be able to upload & view geojson files:
# not real values
"BLOG_RSS_URL": "foo"
"GITHUB_CLIENT_ID": "foo"
"GITHUB_CLIENT_SECRET": "foo"
"GITHUB_ISSUES_TOKEN": "foo"
"NEXT_PUBLIC_WS_HOST": "foo"
"NEXT_PUBLIC_GEOCODE_EARTH_TOKEN": "foo"
# real-ish values
"NEXT_PUBLIC_FILE_LIMIT_MB": "10"
"NEXT_PUBLIC_FILE_WARN_MB": "5"
"TEAM_EMAIL": "[email protected]"
"WFC_QUOTA": "10"
"WFC_QUOTA_ENTERPRISE": "100"
# real values
"DOMAIN": "... render domain ..."
"NEXT_PUBLIC_API_BASE_WITH_SLASH": "https://... render domain .../"
"NEXT_PUBLIC_DOMAIN_WITH_SLASH": "https://... render domain .../"
"NEXT_PUBLIC_MAPBOX_TOKEN": "... real mapbox token ..."
"NEXT_PUBLIC_REPLICACHE_KEY": "... real replicache key ..."
"SESSION_SECRET_KEY": "... secret key ..."
cheers!
from placemark.
Thanks for making these notes and changes.
I followed the suggestions for Render, but still got an error for DATABASE_URL is missing. Looking at the render.yaml, my guess is that Render should be populating this env var. I'm new to Render, so I'm not sure why it wasn't working for me. I ended up just setting it to my supabase instance and that worked well.
Also, the .env.example
has some POSTGRES_*
vars, but looking at /lib/env_server, it seems that these are not being used. Happy to open a PR to remove these if you'd like!
from placemark.
heya @rsdavis -- the DATABASE_URL should have been populated automatically, yeah
just out of curiosity, did you use the "blueprint" functionality on render to create all of the necessary resources? it's a bit confusing (because there are many ways to do this on render), but I'd recommend:
- going to blueprints and creating a new instance
- pointing to either this repo or your fork
- that should pick up the render.yaml file, and then...
- create both web + database services. and that should make the web service pick up the DATABASE_URL env var from the db service
re: POSTGRES_* variables, that's a good point, although I do see that POSTGRES_PASSWORD seems to be used in the tests..? I didn't try running those
from placemark.
Related Issues (20)
- "Report a Vulnerability" link goes to 404 page on GitHub HOT 2
- Dissolve operation
- Find/replace strings in the properties table
- faebook HOT 1
- Error in setup using Docker both in MacOS and Ubuntu HOT 3
- Update to Prisma 5
- Switch away from yarn HOT 2
- RFC: Split off saas branch HOT 1
- Run free instance of /play HOT 4
- Update links
- Fix readme links
- Link to /play instance from placemark.io HOT 1
- Geometry information not working on play.placemark.io HOT 2
- Support for RTL text on the map HOT 2
- Upgrade to mapbox-gl v3
- Broken links in placemark-app/README.md
- Snapping between existing features during drawing HOT 5
- Open GeoJSON from command line / via URL
- Is HTTP custom data not supported? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from placemark.