Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade dependencies #14

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,17 @@ $ boot -d boot/new new -t hoplon-castra -n my-project-nake
```

## Deployment

To deploy a war file to Heroku:

```bash
$ boot make-war
(first time only) $ heroku plugins:install https://github.com/heroku/heroku-deploy
$ heroku deploy:war --war target/project.war --app <your-app-name>
(first time only) $ heroku plugins:install heroku-cli-deploy
$ heroku war:deploy target/project.war --app <your-app-name>
```

To deploy a standalone `jar`, add the following to your `build.boot` file:

```clojure
(deftask build-jar
"Builds a standalone jar."
Expand All @@ -30,7 +34,9 @@ To deploy a standalone `jar`, add the following to your `build.boot` file:
(sift :include #{#"\.jar$"})
(target :dir #{"target"})))
```

then

```bash
boot build-jar
heroku deploy:jar --jar target/project.jar --app <your-app-name>
Expand All @@ -46,6 +52,6 @@ heroku deploy:jar --jar target/project.jar --app <your-app-name>

## License

Copyright © 2013-2016 Micha Niskin, Alan Dipert and Marcelo Nomoto
Copyright © 2013-2020 Micha Niskin, Alan Dipert and Marcelo Nomoto

Distributed under the Eclipse Public License, the same as Clojure.
26 changes: 13 additions & 13 deletions src/leiningen/new/hoplon_castra.clj
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@
(defn hoplon-castra
"Create new Hoplon project with Castra."
[name]
(let [boot-cljs-v "1.7.228-2"
boot-cljs-repl-v "0.3.3"
boot-core-v "2.7.1"
boot-http-v "0.7.6"
boot-reload-v "0.5.1"
(let [boot-cljs-v "2.1.5"
boot-cljs-repl-v "0.4.0"
boot-core-v "2.8.3"
boot-http-v "0.8.3"
boot-reload-v "0.6.0"
castra-v "3.0.0-alpha7"
clojure-v "1.8.0"
clojurescript-v "1.9.495"
compojure-v "1.6.0-beta3"
hoplon-v "6.0.0-alpha17"
piggieback-v "0.2.1"
clojure-v "1.10.1"
clojurescript-v "1.10.335"
compojure-v "1.6.1"
hoplon-v "7.2.0"
piggieback-v "0.2.2"
ring-v "1.5.1"
ring-defaults-v "0.2.3"
tools-nrepl-v "0.2.12"
weasel-v "0.7.0"
ring-defaults-v "0.3.2"
tools-nrepl-v "0.2.13"
weasel-v "0.7.1"
render (t/renderer "hoplon-castra")
main-ns (t/sanitize-ns name)
data {:raw-name name
Expand Down
10 changes: 5 additions & 5 deletions src/leiningen/new/hoplon_castra/build.boot
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
(require
'[adzerk.boot-cljs :refer [cljs]]
'[adzerk.boot-reload :refer [reload]]
'[hoplon.boot-hoplon :refer [hoplon prerender]]
'[hoplon.boot-hoplon :refer [hoplon]]
'[pandeiro.boot-http :refer [serve]])

(deftask dev
Expand All @@ -31,7 +31,7 @@
:handler '{{namespace}}.handler/app
:reload true)
(watch)
(speak)
(notify)
(hoplon)
(reload)
(cljs)))
Expand All @@ -41,14 +41,14 @@
[]
(comp
(hoplon)
(cljs :optimizations :advanced)
(prerender)))
(cljs :optimizations :simple)
(target :dir #{"target"})))

(deftask make-war
"Build a war for deployment"
[]
(comp (hoplon)
(cljs :optimizations :advanced)
(cljs :optimizations :simple)
(uber :as-jars true)
(web :serve '{{munged-name}}.handler/app)
(war)
Expand Down