Set redirectUrl for production; rely on NODE_CONFIG_ENV being set earlier (#2656)
This commit is contained in:
3
Makefile
3
Makefile
@@ -28,9 +28,8 @@ prepare-server-deploy: website
|
||||
cp -r build ${SERVER_TMP}
|
||||
git -C ${SERVER_TMP} add -f build/
|
||||
git -C ${SERVER_TMP} commit --no-verify -m '[DEPLOY] Add frontend for debugging'
|
||||
echo 'NODE_CONFIG_ENV=shields-io-production' > ${SERVER_TMP}/.env
|
||||
cp config/local-shields-io-production.yml ${SERVER_TMP}/config/
|
||||
git -C ${SERVER_TMP} add -f .env config/local-shields-io-production.yml
|
||||
git -C ${SERVER_TMP} add -f config/local-shields-io-production.yml
|
||||
git -C ${SERVER_TMP} commit --no-verify -m '[DEPLOY] MUST NOT BE ON GITHUB'
|
||||
|
||||
clean-server-deploy:
|
||||
|
||||
@@ -9,6 +9,8 @@ public:
|
||||
cors:
|
||||
allowedOrigin: ['http://shields.io', 'https://shields.io']
|
||||
|
||||
redirectUrl: 'https://shields.io/'
|
||||
|
||||
private:
|
||||
# These are not really private; they should be moved to `public`.
|
||||
shields_ips: ['192.99.59.72', '51.254.114.150', '149.56.96.133']
|
||||
|
||||
Reference in New Issue
Block a user