fix: add robots.txt dependant on the environment
This commit is contained in:
3
.github/workflows/beta.yml
vendored
3
.github/workflows/beta.yml
vendored
@@ -34,6 +34,9 @@ jobs:
|
|||||||
- name: Initiate submodules
|
- name: Initiate submodules
|
||||||
run: git submodule update --init
|
run: git submodule update --init
|
||||||
|
|
||||||
|
- name: Copy robots.txt
|
||||||
|
run: cp public/robots.txt.development public/robots.txt
|
||||||
|
|
||||||
- name: Publish to Registry
|
- name: Publish to Registry
|
||||||
uses: elgohr/Publish-Docker-Github-Action@master
|
uses: elgohr/Publish-Docker-Github-Action@master
|
||||||
with:
|
with:
|
||||||
|
|||||||
3
.github/workflows/dev.yml
vendored
3
.github/workflows/dev.yml
vendored
@@ -38,6 +38,9 @@ jobs:
|
|||||||
- name: Initiate submodules
|
- name: Initiate submodules
|
||||||
run: git submodule update --init
|
run: git submodule update --init
|
||||||
|
|
||||||
|
- name: Copy robots.txt
|
||||||
|
run: cp public/robots.txt.development public/robots.txt
|
||||||
|
|
||||||
- name: Publish to Registry
|
- name: Publish to Registry
|
||||||
uses: elgohr/Publish-Docker-Github-Action@master
|
uses: elgohr/Publish-Docker-Github-Action@master
|
||||||
with:
|
with:
|
||||||
|
|||||||
3
.github/workflows/prod.yml
vendored
3
.github/workflows/prod.yml
vendored
@@ -38,6 +38,9 @@ jobs:
|
|||||||
- name: Initiate submodules
|
- name: Initiate submodules
|
||||||
run: git submodule update --init
|
run: git submodule update --init
|
||||||
|
|
||||||
|
- name: Copy robots.txt
|
||||||
|
run: cp public/robots.txt.production public/robots.txt
|
||||||
|
|
||||||
- name: Publish to Registry
|
- name: Publish to Registry
|
||||||
uses: elgohr/Publish-Docker-Github-Action@master
|
uses: elgohr/Publish-Docker-Github-Action@master
|
||||||
with:
|
with:
|
||||||
|
|||||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -32,6 +32,9 @@ dump.rdb
|
|||||||
# Ignore compiled assets
|
# Ignore compiled assets
|
||||||
/public/assets
|
/public/assets
|
||||||
|
|
||||||
|
# Ignore robots.txt - generated before image creation
|
||||||
|
/public/robots.txt
|
||||||
|
|
||||||
# Ignore user uploads
|
# Ignore user uploads
|
||||||
/public/uploads/*
|
/public/uploads/*
|
||||||
!/public/uploads/.keep
|
!/public/uploads/.keep
|
||||||
|
|||||||
2
public/robots.txt.development
Normal file
2
public/robots.txt.development
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
User-agent: *
|
||||||
|
Disallow: /
|
||||||
Reference in New Issue
Block a user