a small incremental UI library for the web
javascript web ui
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Only start dev server in dev

garrison 1e1bedd7 2c7bdc3c

+11 -3
+11 -3
lib/noir/application.ex
··· 2 2 use Application 3 3 4 4 def start(_type, _args) do 5 - children = [ 6 - {Bandit, [plug: Noir.DevServer, ip: :loopback, port: 2000]}, 7 - ] 5 + children = 6 + case Mix.env() do 7 + :dev -> 8 + [ 9 + {Bandit, [plug: Noir.DevServer, ip: :loopback, port: 2000]}, 10 + ] 11 + 12 + _ -> 13 + [] 14 + end 15 + 8 16 Supervisor.start_link(children, strategy: :one_for_one) 9 17 end 10 18 end