Creates a robots.txt for applications that can be set to allow or disallow web crawlers to the app.
Alex Gleason 9393640fa9 Fixed inconsistent help text per tomd | 6 年之前 | |
---|---|---|
subcommands | 8 年之前 | |
templates | 8 年之前 | |
LICENSE | 8 年之前 | |
README.md | 6 年之前 | |
commands | 6 年之前 | |
functions | 8 年之前 | |
plugin.toml | 8 年之前 |
Creates a robots.txt for applications that can be set to allow or disallow web crawlers to the app. This is useful for deploying websites that you do not want indexed by search engines. For instance, you may want to deploy a production app with robots allowed and a staging app with robots disallowed.
# on 0.4.x+
sudo dokku plugin:install https://notabug.org/candlewaster/dokku-robots.txt.git robots.txt
robots.txt:disallow <app>, Discourages web crawlers from indexing this app
robots.txt:allow <app>, Doesn't discourage web crawlers from indexing this app
# Discourage web crawlers from indexing myapp
dokku robots.txt:disallow myapp
# Don't discourage web crawlers from indexing myapp
dokku robots.txt:allow myapp
# View robots.txt for myapp
dokku robots.txt myapp