Skip to content
Snippets Groups Projects

add htaccess and modify deploy command

Merged Christoph Groth requested to merge htaccess into master
2 files
+ 39
5
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 6
5
@@ -407,11 +407,12 @@ REDIRECTIONS = []
# to `nikola deploy`. If no arguments are specified, a preset
# named `default` will be executed. You can use as many presets
# in a `nikola deploy` command as you like.
# DEPLOY_COMMANDS = {
# 'default': [
# "rsync -rav --delete output/ joe@my.site:/srv/www/site",
# ]
# }
DEPLOY_COMMANDS = {
'default': [
"rsync -rav --delete --filter 'P /doc' output/ <USER@TARGET/DIR>",
"rsync -av htaccess-apache <USER@TARGET/DIR>/.htaccess",
]
}
# For user.github.io OR organization.github.io pages, the DEPLOY branch
# MUST be 'master', and 'gh-pages' for other repositories.
Loading