by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Chris Penner
    @ChrisPenner
    Hey there; just leave a message if you need anything!
    ivanovsaleksejs
    @ivanovsaleksejs
    Hi, tried sitepipe and it's a real pain to install it on digitalocean droplet. It depends on pandoc which takes forever to build. It also gives warning: [warn] Package pandoc uses a custom Cabal build, but does not use a custom-setup stanza
    I've managed to install it only after I got additional 10GB of space
    Chaitje
    @Chaitje
    @ChrisPenner Hi, I'm trying to work with your library after your suggestion on Reddit
    Are you here for some simple questions?
    Chris Penner
    @ChrisPenner
    @ivanovsaleksejs I know I'm late to the party, but is there a reason you want to install it on a droplet? It generates static sites, which means you can just copy over the distributable folder it builds over to your server rather than installing the whole thing there.
    Alternatively you could set up your site locally then build an executable for your site generator and copy that over
    @Chaitje as per your issue, would it be acceptable for "copyFiles" to return a list of Values containing the srcPath and the url of the copied files?
    Peter Storm
    @peterstorm
    Hello! I have made it to recursion in the haskellbook, and I want to build a simple blog, where I document my journey, learning haskell - do you think a newbie like me would benefit from using your tool? :)
    And is there a working example with code, of a simple blog running your tool_
    ?
    Chris Penner
    @ChrisPenner
    Sure is! This is in the examples folder of the github repo: https://github.com/ChrisPenner/SitePipe/blob/master/examples/blog/app/Main.hs
    And yes! I think you should be able to figure it out by adapting the example, the JSON/AESON stuff will likely be the trickiest to figure out!
    Emmanuel Mwangi
    @cloudbring
    @ChrisPenner I am trying procedurally generate static web pages for a personal project. Imagine X content Y site types Z templates. I want to make many, many web pages. With Haskell, that seems straight foward. I'm anticipating that I might have js constraints and it might be good to have pages on different domains. Would SitePipe have primatives that would allow me to do this and then have a webserver config that reads the directory name as the domain and then serve that?
    Chris Penner
    @ChrisPenner
    Sorry I missed this until now; @cloudbring : So SitePipe doesn't have a webserver at all; so you'd be on your own for that. SitePipe COULD generate different sites with different domains, but you'd want to do it ahead of time, not dynamically
    Ryan Johnson
    @AMDphreak_gitlab
    I r noob.
    How does this work on gitLab?
    Chris Penner
    @ChrisPenner
    @AMDphreak_gitlab sorry I'm not sure what you're asking, the project is hosted on Github...
    Or are you wondering how to create a site to host on gitlab?
    Ryan Johnson
    @AMDphreak_gitlab
    I am wondering how to create a site to host on gitlab. Gitlab says they support "any" of these generators, but the list here doesn't have yours https://gitlab.com/pages?page=1
    Ryan Johnson
    @AMDphreak_gitlab
    Just a forewarning, I'm new to Fp languages. Mentally I'm coming from the era of C++ but I've been studying Haskell and Racket.
    I learned programming with TI-BASIC and my second language was C++, third was Java, so I'm pretty fucked up. And the industry is stuck on stupid OO and Linux.
    Chris Penner
    @ChrisPenner
    Sure, you can follow the Sitepipe tutorial to get a build working, then you'll just need to copy the built site into the "public" folder of your gitlab project 😄
    I've never actually used gitlab for this myself, but it's just HTML, should work fine!
    Ryan Johnson
    @AMDphreak_gitlab
    So I run this locally, then push the project (with the outputted HTML) to gitlab and it'll migrate it to their live server?
    Chris Penner
    @ChrisPenner
    Most of these solutions (same with github) just serve the files from their domain by mounting the repo as a filesystem. Should work out yup!
    This is more so a question about Gitlab than about Sitepipe 😄 sitepipe just outputs HTML, what you do with it after that is up to you, but yes should work for this ✌️

    You can also have it build your site after push I think, but that's a part of gitlab I've not tried out; could probably make a few edits to the Hakyll build steps and get it going 😄

    https://gitlab.com/pages/hakyll