Add makefile for deploys
parent
0fb359c9ec
commit
60caaefa85
@ -1,3 +1,3 @@
|
||||
((nil . ((cider-ns-refresh-before-fn . "integrant.repl/halt")
|
||||
(cider-ns-refresh-after-fn . "integrant.repl/init")
|
||||
(cider-ns-refresh-after-fn . "integrant.repl/go")
|
||||
(cider-clojure-cli-global-options . "-A:dev:cider-nrepl"))))
|
||||
|
@ -0,0 +1,24 @@
|
||||
##
|
||||
# Project Title
|
||||
#
|
||||
# @file
|
||||
# @version 0.1
|
||||
|
||||
src = $(shell find web -type f -iname *.clj 2>/dev/null)
|
||||
|
||||
LottoEmail.jar: $(src)
|
||||
cd web && clj -A:depstar -M:depstar -m hf.depstar.uberjar \
|
||||
darklimericks.jar -C -m com.darklimericks.server.core
|
||||
|
||||
build: FORCE
|
||||
cd web && clj -A:depstar -M:depstar -m hf.depstar.uberjar \
|
||||
darklimericks.jar -C -m com.darklimericks.server.core
|
||||
|
||||
FORCE:
|
||||
|
||||
push: FORCE
|
||||
rsync -aP web/LottoEmail.jar root@165.227.27.168:/root
|
||||
|
||||
deploy: LottoEmail.jar
|
||||
ssh root@165.227.27.168 java -jar /root/LottoEmail.jar
|
||||
# end
|
Binary file not shown.
@ -0,0 +1,27 @@
|
||||
;;; refresh.el ends here
|
||||
;;; refresh.el --- description -*- lexical-binding: t; -*-
|
||||
;;
|
||||
;; Copyright (C) 2020 Eric Ihli
|
||||
;;
|
||||
;; Author: Eric Ihli <http://github/eihli>
|
||||
;; Maintainer: Eric Ihli <eihli@owoga.com>
|
||||
;; Created: December 09, 2020
|
||||
;; Modified: December 09, 2020
|
||||
;; Version: 0.0.1
|
||||
;; Keywords:
|
||||
;; Homepage: https://github.com/eihli/refresh
|
||||
;; Package-Requires: ((emacs 27.1) (cl-lib "0.5"))
|
||||
;;
|
||||
;; This file is not part of GNU Emacs.
|
||||
;;
|
||||
;;; Commentary:
|
||||
;;
|
||||
;; description
|
||||
;;
|
||||
;;; Code:
|
||||
|
||||
(setq cider-ns-refresh-before-fn "integrant.repl/suspend"
|
||||
cider-ns-refresh-after-fn "integrant.repl/resume")
|
||||
|
||||
(provide 'refresh)
|
||||
;;; refresh.el ends here
|
@ -0,0 +1,21 @@
|
||||
{:com.darklimericks.logging/logging
|
||||
{:min-level :debug}
|
||||
|
||||
:com.darklimericks.server.core/server
|
||||
{:port 8000 :handler #ig/ref :com.darklimericks.server.handlers/handler}
|
||||
|
||||
:com.darklimericks.server.worker/limerick-gen
|
||||
{:kv #ig/ref :com.darklimericks.kv.core/connection
|
||||
:db #ig/ref :com.darklimericks.db.core/connection}
|
||||
|
||||
:com.darklimericks.kv.core/connection
|
||||
{:pool {}
|
||||
:spec {:uri ""}}
|
||||
|
||||
:com.darklimericks.db.core/connection {}
|
||||
|
||||
:com.darklimericks.server.router/router
|
||||
{:db #ig/ref :com.darklimericks.db.core/connection}
|
||||
|
||||
:com.darklimericks.server.handlers/handler
|
||||
{:router #ig/ref :com.darklimericks.server.router/router}}
|
@ -0,0 +1,124 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>web</groupId>
|
||||
<artifactId>web</artifactId>
|
||||
<version>0.1.0</version>
|
||||
<name>web</name>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.clojure</groupId>
|
||||
<artifactId>clojure</artifactId>
|
||||
<version>1.10.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>metosin</groupId>
|
||||
<artifactId>muuntaja</artifactId>
|
||||
<version>0.6.7</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>integrant</groupId>
|
||||
<artifactId>repl</artifactId>
|
||||
<version>0.3.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>digest</groupId>
|
||||
<artifactId>digest</artifactId>
|
||||
<version>1.4.9</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>honeysql</groupId>
|
||||
<artifactId>honeysql</artifactId>
|
||||
<version>1.0.444</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.taoensso</groupId>
|
||||
<artifactId>carmine</artifactId>
|
||||
<version>3.0.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.postgresql</groupId>
|
||||
<artifactId>postgresql</artifactId>
|
||||
<version>42.2.18</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.clojure</groupId>
|
||||
<artifactId>tools.namespace</artifactId>
|
||||
<version>1.0.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>migratus</groupId>
|
||||
<artifactId>migratus</artifactId>
|
||||
<version>1.3.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>integrant</groupId>
|
||||
<artifactId>integrant</artifactId>
|
||||
<version>0.8.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.layerware</groupId>
|
||||
<artifactId>hugsql</artifactId>
|
||||
<version>0.5.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>hiccup</groupId>
|
||||
<artifactId>hiccup</artifactId>
|
||||
<version>1.0.5</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>seancorfield</groupId>
|
||||
<artifactId>next.jdbc</artifactId>
|
||||
<version>1.1.610</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>environ</groupId>
|
||||
<artifactId>environ</artifactId>
|
||||
<version>1.2.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.taoensso</groupId>
|
||||
<artifactId>timbre</artifactId>
|
||||
<version>5.1.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>metosin</groupId>
|
||||
<artifactId>reitit-http</artifactId>
|
||||
<version>0.5.10</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.xerial</groupId>
|
||||
<artifactId>sqlite-jdbc</artifactId>
|
||||
<version>3.32.3.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>metosin</groupId>
|
||||
<artifactId>reitit</artifactId>
|
||||
<version>0.5.10</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>ring</groupId>
|
||||
<artifactId>ring-core</artifactId>
|
||||
<version>1.8.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>metosin</groupId>
|
||||
<artifactId>reitit-interceptors</artifactId>
|
||||
<version>0.5.10</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>http-kit</groupId>
|
||||
<artifactId>http-kit</artifactId>
|
||||
<version>2.5.0</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<build>
|
||||
<sourceDirectory>src</sourceDirectory>
|
||||
</build>
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>clojars</id>
|
||||
<url>https://repo.clojars.org/</url>
|
||||
</repository>
|
||||
</repositories>
|
||||
</project>
|
@ -1,10 +1,21 @@
|
||||
{:app/logging {:min-level :debug}
|
||||
:app/server {:port 80 :handler #ig/ref :app/handler}
|
||||
:app/cache {}
|
||||
:worker/limerick-gen {:kv #ig/ref :database.kv/connection
|
||||
:db #ig/ref :database.sql/connection}
|
||||
:database.kv/connection {:pool {}
|
||||
{:com.darklimericks.logging/logging
|
||||
{:min-level :warning}
|
||||
|
||||
:com.darklimericks.server.core/server
|
||||
{:port 80 :handler #ig/ref :com.darklimericks.server.handlers/handler}
|
||||
|
||||
:com.darklimericks.server.worker/limerick-gen
|
||||
{:kv #ig/ref :com.darklimericks.kv.core/connection
|
||||
:db #ig/ref :com.darklimericks.db.core/connection}
|
||||
|
||||
:com.darklimericks.kv.core/connection
|
||||
{:pool {}
|
||||
:spec {:uri ""}}
|
||||
:database.sql/connection {}
|
||||
:app/router {:db #ig/ref :database.sql/connection :cache #ig/ref :app/cache}
|
||||
:app/handler {:router #ig/ref :app/router}}
|
||||
|
||||
:com.darklimericks.db.core/connection {}
|
||||
|
||||
:com.darklimericks.server.router/router
|
||||
{:db #ig/ref :com.darklimericks.db.core/connection}
|
||||
|
||||
:com.darklimericks.server.handlers/handler
|
||||
{:router #ig/ref :com.darklimericks.server.router/router}}
|
||||
|
Loading…
Reference in New Issue