A Leiningen template for creating flat layout web-project.
To generate a flat layout leiningen project, just type this.
$> lein new flat-layout-web <project-name>
You'll get a project having following layout.
<project-name>/
.gitignore
project.clj
<project-name>.clj
Procfile (for Heroku)
system.properties (for Heroku)
This is convenience if you want to write some small Gist snippet having external dependencies which should have been written in its project.clj. After writing your snippet, you can git push
to Gist directly.
(Gist doesn't allow us to upload a project including sub directories.)
start-server
function defined in <project-name>.clj
.(project-name/start-server)
stop-server
function defined in <project-name>.clj
.(project-name/stop-server)
This is the command.
$> lein with-profile production trampoline ring server
The same command is written in Procfile. You can deploy the created project to Heroku.
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close