This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-07-06
Channels
- # beginners (90)
- # boot (83)
- # cider (39)
- # clara (4)
- # cljs-dev (124)
- # cljsrn (10)
- # clojure (208)
- # clojure-boston (1)
- # clojure-italy (13)
- # clojure-nlp (3)
- # clojure-russia (34)
- # clojure-spec (63)
- # clojure-uk (101)
- # clojurescript (65)
- # community-development (13)
- # copenhagen-clojurians (1)
- # core-async (1)
- # cursive (24)
- # datascript (1)
- # datomic (65)
- # emacs (20)
- # graphql (20)
- # hoplon (21)
- # instaparse (18)
- # jobs (5)
- # jobs-discuss (2)
- # leiningen (8)
- # luminus (32)
- # midje (1)
- # mount (3)
- # off-topic (18)
- # om (10)
- # parinfer (6)
- # pedestal (2)
- # planck (2)
- # precept (22)
- # protorepl (7)
- # re-frame (45)
- # reagent (9)
- # ring (1)
- # ring-swagger (4)
- # rum (2)
- # spacemacs (5)
- # sql (2)
- # unrepl (13)
- # untangled (8)
- # yada (5)
I think I settled on using peridot and logging in before every request that requires auth.
@yogthos in selmer is there a way to do {% if forloop.counter = 0 or forloop.counter = 1 %}
looking at the code I would say no. Maybe I can call a clojure method? if says evaluates a condition so could that be clojure call?
@llsouder you could do it using a filter (selmer.filters/add-filter! :matching-counter #(some #{%} [0 1]))
and then {% if forloop.counter|matching-counter %}hello{% endif %}
thanks. Where does the (selmer.filters/add-filter! :matching-counter #(some #{%} [0 1]))
go? in the template or the clj file?
I’m trying to figure out how to deploy a Luminus web app to Linode. I’ve read the excellent docs (http://www.luminusweb.net/docs/deployment.md) I was wondering how I could automate deployments as much as possible. My first thought was setting up a docker container and deploying it with dokku (git push a la Heroku). I would love to hear some other thoughts as well. Thanks in advance!
The idea is to add at least one more separate web app for another subdomain
but depends on the complexity of the apps as well, if you need external dependencies like queues, databases, etc, then I find docker is nice
I currently have a single DB for both apps and some reliance on the file system. Queues might come in the picture later on.
I’m somewhat familiar with Docker, but Vagrant looks nice as well
ansible is another nice tool for provisioning https://www.ansible.com/
A simple deploy script with some ssh commands might still be a viable option as well once nginx is setup
As you said, jars are nice
the thing that’s nice with vagrant is that it lets you script the whole system setup, so you can easily rebuild it later
Looks very interesting for local dev environments
nowadays I like to treat system config as code, put it in a script, check it in the repo 🙂
otherwise you always end up with situations where you forget how you configured it originally and start scratching your head 🙂
That’s the good old days 😉
Thanks for your insights. 🙂