Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is Heroku dead for OSS? Remove the Heroku example and CI #306

Open
aantron opened this issue Nov 29, 2023 · 9 comments
Open

Is Heroku dead for OSS? Remove the Heroku example and CI #306

aantron opened this issue Nov 29, 2023 · 9 comments

Comments

@aantron
Copy link
Owner

aantron commented Nov 29, 2023

As I understand it, it's no longer possible to deploy to Heroku for free, which complicates maintenance with the need to be on a paid plan. I also suspect that Heroku is much less popular as a result of this. So, I'm inclined to remove the Heroku example, as it probably won't be updated. It can still be found in the repo history if anyone needs it.

@aantron
Copy link
Owner Author

aantron commented Nov 30, 2023

Looks like I opened a duplicate issue on my own repo... #273

@Ashvith10
Copy link

@aantron how about trying out Railway or Replit? Both of them provide a Nix-based approach, meaning that you have flexibility over choosing packages. Personally, I've struggled with using opam as I'm a beginner myself (you're forced to use only Nix and not the in-built package manager, I think?), but I've tried Replit with SvelteKit, and I think it's quite nice.

@aantron
Copy link
Owner Author

aantron commented Nov 30, 2023

I'd be happy to add either one. Would you (or someone) be willing to create an initial PR? I would polish it afterwards (as we did with Fly.io by @dangdennis and as I've recently done to maintain our existing deployment examples). It would be a great help to me to not have to figure out each platform on its own from zero, but to have some initial instructions I could get started with.

I personally found Railway intriguing in the last few days. Haven't looked into Replit yet.

@dangdennis
Copy link
Contributor

I made a template on railway for dream fwiw. https://railway.app/template/mxESzS

while railway created nixpacks, for unsupported languages, docker is still the way to go.

@aantron
Copy link
Owner Author

aantron commented Nov 30, 2023

I made a template on railway for dream fwiw. https://railway.app/template/mxESzS

while railway created nixpacks, for unsupported languages, docker is still the way to go.

Great! What's the best way for us to present it in the Dream repo? As a link? As an example within the Dream repo?

@aantron
Copy link
Owner Author

aantron commented Nov 30, 2023

I think I can write a minimalistic example based on this.

@aantron
Copy link
Owner Author

aantron commented Nov 30, 2023

Railway does seem to lack a free plan. The issue here is not money (Dream already pays much more to host dream.as). I don't think I can justify the time cost of managing an extra entanglement for a hosting platform at this point.

@Ashvith10
Copy link

Ashvith10 commented Nov 30, 2023

@aantron fair point. I think I remember why I deleted my account immediately. At least from a beginner's PoV, they would prefer a free hosting service. Perhaps Replit would be a fair place to write a few tutorials? What would be a example tutorial you'd recommend me to try out?

Edit: Looks like OCaml already exists, and the example, although not a Dream project, can be swapped easily with the example.

@aantron
Copy link
Owner Author

aantron commented Dec 1, 2023

We'd probably wantt just the simplest "Hello, world!" type of example, like the Heroku one:

let () =
  Dream.run ~interface:"0.0.0.0" ~port:80
  @@ Dream.logger
  @@ Dream.router [
    Dream.get "/" (fun _ -> Dream.html "Dream running in Reeplit!");
  ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants