diff options
Diffstat (limited to 'deploy')
| -rwxr-xr-x | deploy | 21 |
1 files changed, 0 insertions, 21 deletions
@@ -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") |
