nakaji-dayo / yesod-job-queue

Background job queue library for Yesod.
BSD 3-Clause "New" or "Revised" License
20 stars 14 forks source link

Error on app js run #3

Closed amitaibu closed 8 years ago

amitaibu commented 8 years ago

It's not written in the README how to invoke the app, but from a quick look it seems npm run bs is the right step. However I now get:

localhost_3001

What am I missing?

(btw, cyclejs is great but I prefer Elm πŸ˜‰ )

nakaji-dayo commented 8 years ago

I'm sorry, npm run bs is currently imcomplete.

Usually, you can access app from /manager in the subsite. (If you are running example: http://localhost:3000/job/manager)

However, in development of the app, It takes long time to build the package each time app.bundle.js is changed. So, I'm using npm run bs to serve app.bundle.js, and change app.bundle.js path in example/Main.hs.

jobManagerJSUrl _ = "http://localhost:3001/dist/app.bundle.js

umm, I think this is not good way.


Yeah, I'm interested in "Elm" and PureScript. I might rewrite this with any alt js πŸ‘. but, I can’t decide what to use yet.

Thanks!

amitaibu commented 8 years ago

πŸ‘ - however now when I open the URL I get:

yesodjobqueue_manager

I suspect it's because I don't have Redis running. Are you using a Docker container to run Redis and somehow connect it to your Yesod app?

nakaji-dayo commented 8 years ago

I also think it's cause, although I can't conclude without server side log.

No, I'm not using Docker. Would you need Docker? This library only uses Redis.

nakaji-dayo commented 8 years ago

I did commit related.

"allow to change connection info for redis" https://github.com/nakaji-dayo/yesod-job-queue/commit/380b0b3a563ce8574e199cbd89400713baafc110

amitaibu commented 8 years ago

I'll check it and report - thanks.

amitaibu commented 8 years ago

Yes, after I did a brew install redis it works fine. Now I can start learning from your library ;)

yesodjobqueue_manager

nakaji-dayo commented 8 years ago

Thanks for report !