You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
536 B
28 lines
536 B
#! /usr/bin/env racket
|
|
#lang racket
|
|
|
|
(require bolt)
|
|
|
|
; This is based on an entry in ~/.ssh/config
|
|
(define primop
|
|
(remote
|
|
#:host "linode"
|
|
#:user "wes"
|
|
#:key "/home/wes/.ssh/id_rsa.key"))
|
|
|
|
(define (deploy)
|
|
(with-host primop
|
|
(with-shell-vars
|
|
(["a" "b"])
|
|
(become "wes"
|
|
(copy-dir "../pricewatch" "/home/wes/pricewatch")
|
|
|
|
(with-cwd "/home/wes/pricewatch"
|
|
|
|
(become "root"
|
|
(exec "pip install pipenv"))
|
|
|
|
(with-cwd "checks"
|
|
(exec "pipenv install")))))))
|
|
|
|
(deploy)
|
|
|