Add some infrastructure for deployments.

This commit is contained in:
Sergiu Ivanov 2018-10-01 17:36:54 +02:00
parent 90bb365a76
commit be04519858
2 changed files with 15 additions and 0 deletions

7
deploy Executable file
View file

@ -0,0 +1,7 @@
#!/bin/sh
#
# Deploys my site to ibisc.univ-evry.fr/~sivanov/
#
# This command must be run from within the lab network.
lftp -e "mirror --delete-first -R www public_html; bye" sftp://sivanov:DUMMY@172.31.8.95

8
shell.nix Normal file
View file

@ -0,0 +1,8 @@
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "lftp";
buildInputs = [ lftp ];
shellHook = ''
echo NOTE: Deploying to ibisc.univ-evry.fr is only possible from inside the lab network.
'';
}