Fork me on GitHub
#off-topic
<
2023-01-11
>
Asko Nōmm14:01:24

What's a good hosting provider / way of hosting for Clojure apps? Ideally it would be as simple as possible, like dragging and dropping a uberjar or something of the like - but my google-fu seems to only find rather complex ways to host Java apps. Is there no "shared hosting" equivalent for Java/Clojure that is for PHP for example?

delaguardo14:01:17

https://www.heroku.com/java there is even screencast showcasing clojure app

Cora (she/her)14:01:03

if you squint a little this is similar to what you were asking for https://github.com/alekcz/pcp

Asko Nōmm15:01:26

Thanks for the suggestions!

jasonbell15:01:36

That’s such a good idea @U026NQLSBLH but please do not give me ideas at this point in time! 🙂

😂 2
Cora (she/her)16:01:07

it's too bad it costs so much to start a PaaS company

borkdude16:01:11

http://fly.io is also an "easy" one. This is a bb project that you can run there, but in principle it's not much different than a clojure one, as long as you use the appropriate Dockerfile https://github.com/babashka/babashka/tree/master/doc/fly_io

Cora (she/her)16:01:34

iiiiinteresting

Rupert (All Street)16:01:49

You can use a standard linux hosting provider (e.g. Digital Ocean is $5 per month. there's some that are $3 per month or even free). Then you just need to run 3 commands • Send file to server (rsync, scp or sftp) • SSH into server • Start Jar (e.g. nohup, systemd or cron)

rsync jar-file.jar my-server:/home/user/
ssh my-server 
nohup java -cp <jar-file.jar> <my.main.namespace> &
exit
There's no proprietary API to learn, no CLI software to install locally or documentation to read. You can be started in minutes, it's portable to many providers and you can host as many projects as you can fit on your server.

Cora (she/her)16:01:21

or start it in tmux/screen 😜

👍 4
Carsten Behring17:01:55

I am looking for this at a provider, which usually is not in the "very cheap" category, namely "container apps" of Microsoft Azure. These has the "interesting cost model", that "deployed but unused" applications cost 0 Euros. If a connection comes in, it starts up, you pay (very cheap: €0.0000321 per second) but it scales down to cost 0 automatically afterwards. For "rarely used web apps" this seems very promising.

Cora (she/her)17:01:49

sounds very lambda

Cora (she/her)17:01:13

aws lambda isn't exactly simple, though

Carsten Behring17:01:30

yes, but working for any Docker image.... Internally based on Kubernetes. Simple is relative, though. It has a one-command setup tool : "az containerapp up": https://learn.microsoft.com/en-us/cli/azure/containerapp?view=azure-cli-latest#az-containerapp-up

eggsyntax17:01:51

Looks like these folks have created a PaaS specifically for Clojure -- I haven't looked into it personally but they just posted in #C8NUSGWG6 / #C06MAR553. https://www.gethop.dev/

eggsyntax17:01:31

...or maybe they've created tools to make AWS deployment of Clojure easier? Not immediately clear, but either way @U026NQLSBLH it might be useful for what you're looking for.

caumond13:01:47

I use clever cloud, a french company, with hosting all around the world. I find it is good to start with. But I don't have a full production app to be honest but I don't see any limitation.

Elliot Stern20:01:13

A game written in common lisp was released on steam today - https://store.steampowered.com/app/1261430/Kandria/

🎉 24
8
2
2