added support for .htaccess

This commit is contained in:
Don Harper 2017-02-22 13:18:46 -06:00
parent fac0ef25cb
commit e671b67c1a
2 changed files with 5 additions and 0 deletions

4
.htaccess Normal file
View file

@ -0,0 +1,4 @@
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.duckland.org/$1 [R,L]

View file

@ -88,6 +88,7 @@ DEPLOY_COMMANDS = {
"cd sigal; sigal build",
"nikola build",
"nikola check -l",
"cp .htaccess output/",
"chmod -R a+rX output/",
"rsync -a --delete -e 'ssh -x -i /home/don/.ssh/http -l duck' output/ wise.dreamhost.com:httpd/duckland.org/nikola",
#"rsync -a --delete -e 'ssh -x -i /home/don/.ssh/http -l don' ./ don@web.duckland.org:/srv/http/work/www.duckland.org",