Skip to content

Commit 7c9a6e1

Browse files
committed
Clear up deployment scripts
1 parent 254af8a commit 7c9a6e1

File tree

7 files changed

+18
-7
lines changed

7 files changed

+18
-7
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,3 +146,4 @@ yarn-debug.log*
146146
yarn-error.log*
147147

148148
.idea/
149+
CNAME

env/development.robots.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
User-agent: *
2+
Disallow: /CNAME
3+
Disallow: /opensearch.xml
4+
Disallow: /.nojekyll
5+
Sitemap: https://docs-redux.melpadden.com/sitemap.xml
6+
# Algolia-Crawler-Verif: 47EC0D9A31F6D517

scripts/build-dev.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#!/bin/bash
2+
yarn clear
23
cp ./env/development.env ./.env
3-
cp ./env/development.CNAME ./CNAME
4+
cat ./algolia.env >> ./.env
5+
cp ./env/development.robots.txt ./static/robots.txt
46
docusaurus build
7+
cp ./env/development.CNAME ./build/CNAME

scripts/build-prod.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#!/bin/bash
2-
cp ./env/production.env ./.env
3-
cp ./env/production.CNAME ./CNAME
2+
yarn clear
3+
cp ./env/staging.env ./.env
4+
cat ./algolia.env >> ./.env
5+
cp ./env/staging.robots.txt ./static/robots.txt
46
docusaurus build
7+
cp ./env/staging.CNAME ./build/CNAME

scripts/build-staging.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
yarn clear
33
cp ./env/staging.env ./.env
44
cat ./algolia.env >> ./.env
5-
#cp ./env/staging.CNAME ./CNAME
65
cp ./env/staging.robots.txt ./static/robots.txt
76
docusaurus build
87
cp ./env/staging.CNAME ./build/CNAME
9-
#cp ./env/staging.robots.txt ./build/robots.txt
File renamed without changes.

static/robots.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ User-agent: *
22
Disallow: /CNAME
33
Disallow: /opensearch.xml
44
Disallow: /.nojekyll
5-
Sitemap: https://casper-devrel.github.io/docs-redux/sitemap.xml
6-
# Algolia-Crawler-Verif: CE382CF3AA18FA59
5+
Sitemap: https://docs-redux.melpadden.com/sitemap.xml
6+
# Algolia-Crawler-Verif: 47EC0D9A31F6D517

0 commit comments

Comments
 (0)