mirror of
https://github.com/standardnotes/app.git
synced 2026-01-11 19:56:41 +00:00
fix: add robots.txt dependant on the environment
This commit is contained in:
parent
2fa7fcb27d
commit
c1e3d32e16
6 changed files with 14 additions and 0 deletions
3
.github/workflows/beta.yml
vendored
3
.github/workflows/beta.yml
vendored
|
|
@ -34,6 +34,9 @@ jobs:
|
|||
- name: Initiate submodules
|
||||
run: git submodule update --init
|
||||
|
||||
- name: Copy robots.txt
|
||||
run: cp public/robots.txt.development public/robots.txt
|
||||
|
||||
- name: Publish to Registry
|
||||
uses: elgohr/Publish-Docker-Github-Action@master
|
||||
with:
|
||||
|
|
|
|||
3
.github/workflows/dev.yml
vendored
3
.github/workflows/dev.yml
vendored
|
|
@ -38,6 +38,9 @@ jobs:
|
|||
- name: Initiate submodules
|
||||
run: git submodule update --init
|
||||
|
||||
- name: Copy robots.txt
|
||||
run: cp public/robots.txt.development public/robots.txt
|
||||
|
||||
- name: Publish to Registry
|
||||
uses: elgohr/Publish-Docker-Github-Action@master
|
||||
with:
|
||||
|
|
|
|||
3
.github/workflows/prod.yml
vendored
3
.github/workflows/prod.yml
vendored
|
|
@ -38,6 +38,9 @@ jobs:
|
|||
- name: Initiate submodules
|
||||
run: git submodule update --init
|
||||
|
||||
- name: Copy robots.txt
|
||||
run: cp public/robots.txt.production public/robots.txt
|
||||
|
||||
- name: Publish to Registry
|
||||
uses: elgohr/Publish-Docker-Github-Action@master
|
||||
with:
|
||||
|
|
|
|||
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -32,6 +32,9 @@ dump.rdb
|
|||
# Ignore compiled assets
|
||||
/public/assets
|
||||
|
||||
# Ignore robots.txt - generated before image creation
|
||||
/public/robots.txt
|
||||
|
||||
# Ignore user uploads
|
||||
/public/uploads/*
|
||||
!/public/uploads/.keep
|
||||
|
|
|
|||
2
public/robots.txt.development
Normal file
2
public/robots.txt.development
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
User-agent: *
|
||||
Disallow: /
|
||||
Loading…
Add table
Reference in a new issue