Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Surfer
  3. Postgres for a surfer app?

Postgres for a surfer app?

Scheduled Pinned Locked Moved Surfer
4 Posts 2 Posters 534 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • chetbakerC Offline
    chetbakerC Offline
    chetbaker
    wrote on last edited by
    #1

    Hello folks,

    Brief warning, this may be a very stupid question.

    I'm running an 11ty instance locally with a postgres database for tons of data I'm hosting there.

    Ideally I would like to host the site in Cloudron (given is a 11ty, probably a Surfer install is the option) but I'm kind of lost what to do with the Posrgres database. I've been reading documentation and discussions here but I'm still lost. I just need to fill up a database in Cloudron for that to be used by the surfer app.

    Is that possible? What piece am I missing?
    Thanks!

    1 Reply Last reply
    0
    • nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote on last edited by
      #2

      I am not really familiar with 11ty but looks like a static site generator. If postgres is required during generating the static assets, then this does not have to be on Cloudron. But I don't know the setup you currently have. Maybe with some git push hooks and the site is built on the server as well as served up?

      Surfer will do if all assets are static, but it does not execute any code on the server, so a database would not make any sense for it.

      1 Reply Last reply
      0
      • chetbakerC Offline
        chetbakerC Offline
        chetbaker
        wrote on last edited by
        #3

        Thanks @nebulon that's exactly right. It's a static site generator to serve pages based on a postgresdb I'm currently hosting locally that I would love to host in cloudron and not to depend on a third party.

        1 Reply Last reply
        0
        • nebulonN Offline
          nebulonN Offline
          nebulon
          Staff
          wrote on last edited by
          #4

          Since it is a static site generator, I guess you could also generate the assets locally and then push to a surfer instance.

          Otherwise, it may be similar to github pages, which build the static assets on git push and then just serve those. For this you would probably build a custom Cloudron app, which knows how to build the assets.

          1 Reply Last reply
          0
          • J joseph moved this topic from Support on
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Bookmarks
          • Search