GithubHelp home page GithubHelp logo

Quickstart for deployment about placemark HOT 3 OPEN

tmcw avatar tmcw commented on May 17, 2024
Quickstart for deployment

from placemark.

Comments (3)

gregsadetsky avatar gregsadetsky commented on May 17, 2024 2

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 to starter
    • remove the fromGroup -- I ended up manually adding environment variables on render (more on this below)
    • you can see the diff here
  • 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.

rsdavis avatar rsdavis commented on May 17, 2024

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.

gregsadetsky avatar gregsadetsky commented on May 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.