summaryrefslogtreecommitdiff
path: root/deploy
diff options
context:
space:
mode:
authorSamuel Wilhelmsson <samuel.wilhelmsson@gmail.com>2025-01-12 00:15:39 +0100
committerSamuel Wilhelmsson <samuel.wilhelmsson@gmail.com>2025-01-12 00:15:39 +0100
commiteccf849e5054b1f1f78d2b6c75d097fae3fc4df8 (patch)
tree30dc4d90daa7ea1fa035cf977449ed66c2c20d29 /deploy
parente4fc03baf716f879b44c6ce18781d3dc702354c3 (diff)
downloadtinygram-eccf849e5054b1f1f78d2b6c75d097fae3fc4df8.tar.gz
tinygram-eccf849e5054b1f1f78d2b6c75d097fae3fc4df8.zip
clean up deploy after new secret magic
Diffstat (limited to 'deploy')
-rwxr-xr-xdeploy21
1 files changed, 0 insertions, 21 deletions
diff --git a/deploy b/deploy
index 3c5c89b..dda2e7f 100755
--- a/deploy
+++ b/deploy
@@ -35,30 +35,9 @@
(print "-- syncing assets --")
($ rsync ;rsync-asset-args)
-(print "-- creating service locally--")
-(def template (slurp "service/tinygram.service.template"))
-
-(print "-- decrypting env --")
-($ agebox decrypt --all)
-(def envfile (slurp "prod.env"))
-($ agebox encrypt --all)
-(print "-- encrypting env --")
-
-(def env-statements
- (filter (fn [s] (not (empty? s)))
- (string/split "\n" envfile)))
-
-(def env-block (string ;(map (fn [env] (string "Environment=\"" env "\"\n")) env-statements)))
-
-(spit "service/tinygram.service"
- (peg/replace "<1>\n" env-block template))
-
(print "-- syncing service --")
($ rsync ;rsync-service-args)
-(print "-- cleaning up service locally --")
-($ rm "service/tinygram.service")
-
(print "-- cleaning up binary --")
($ rm "tinygram")