Skip to content

Conversation

JAremko
Copy link

@JAremko JAremko commented Jun 2, 2021

Straightforward way to run the demo on "real" server.

@piranha With a free instance it can get sleepy so you can use https://kaffeine.herokuapp.com/ that forces it to never sleep (burns all free hours on your account, but it should be enough for a single web instance, I think they require your credit card number to provide free 1000h, no card quota is ~500h, if I remember correctly).

:start (do
(println "Starting HTTPd on :5454...")
(httpd/run-server app/app {:port 5454}))
:start (let [port (or (some->> "PORT" System/getenv Integer/parseInt)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Heroku sets PORT variable.

This is a simple eCommerce site: product list with endless scroll, where you can
add a product to cart and so on.

[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one is pretty neat. Heroku server reads a request origin to figure out what app should be deployed.

@JAremko
Copy link
Author

JAremko commented Jun 8, 2021

@danownsthisspace Suddenly :shipit: This is how you serve and build docker image with Heroku (some deps.edn memes) 😄

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

Successfully merging this pull request may close these issues.

1 participant