Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
![](/static/devrant/img/pipeless-devrant-banner-white.png)
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Demolishun32886311dcrocweb
And they won't rip you off like a lot of the hosts now. Domain get from namesilo.com.
crocweb has https support. I do about $10 a month for my stuff. But I have seen plans for $3 or around there. -
webketje2225311dDon't use it personally but I tried it once, Heroku was easier to set up than DO. You can go for an eco dyno (5$) or a basic (7$ which includes SSL & cert-renewal & maybe domain? Dunno). They support deploys from git & take care of OS patches
-
lorentz14940311dIf there's really nothing on the server side, are you sure you couldn't render it to a static site and deploy to github pages? I take pleasure in devising strange SSG setups. My mom's website is a custom JS site generator, mine is a React site but it simultaneously lazy-loads the JS for hydration and uses Puppeteer for prerendering so it manages to be about as difficult as they get.
-
AlgoRythm50756311d@lorentz Unfortunately I would really love to do this but cannot because, unless the GitHub routing can be configured this way, I need any path which doesn't exist in the static resources folder to route to the index page. It's SPA so routing is done client-side.
I've already considered GH pages but this was the snag that made me know I needed at least a little server side support -
lorentz14940311d@AlgoRythm Then you can have a copy of index.html as 404.html and render the 404 page with client-side routing. In fact, if you have a finite number of routes you can write index.html to each of them.
-
lorentz14940311d@AlgoRythm That's one step less advanced than SSG, where you would prepopulate each of those HTML files with the contents after rendering, and have your SPA framework hydrate it. That's how my website works.
-
AlgoRythm50756310d@lorentz hmmm, in fact, why have an index whatsoever? If I can have everything redirect to 404.html, that's exactly what I need... Hmm... And I guess I don't *need* the personal domain, I can use GitHub's default or whatever. Unless I can configure my domain on GH pages
-
lorentz14940310d@AlgoRythm You can have search engines index your content by prerendering each page. Also, all redirects are "virtual" JS redirects which means that the network and parsing components of navigation delay double, so you probably want to do it as little as possible even if you don't care about search engines or accessibility. Anyway in an SPA the largest part is the main JS bundle and that can be imported to each HTML file from a shared location.
-
lorentz14940310d@AlgoRythm You can't have *everything* redirect to 404.html, you can prepare specific HTML files with whatever you like, everything else will return a 404 status code alongside the contents of 404.html
-
lorentz14940310dActually, a quick search reveals that deploying SPAs on github pages by placing the main HTML file in 404.html is extremely common, so you can just do that I guess if search engine indexing isn't important.
-
AlgoRythm50756310d@lorentz Yeah I'm already working on that. I don't care about SEO, just need the host
-
AlgoRythm50756310d@lorentz Well waddaya know, what a neat little hack. It completely works. All I had to do was make a little "build" script and that was all. How wonderful, free hosting!
Looking for hosting recommendation.
I want to set up a very simple, damn near static Node.JS site that uses handlebars and some custom routing logic (static site wouldn't cut it).
No database connection, nothing serverside except handlebars and Node.js.
I want HTTPS and to use my own domain.
Can anything accomplish this for less than a $5/mo droplet from digitalocean?
question