Skip to content

Commit 736846a

Browse files
committedNov 29, 2019
Update cloudfront URL
1 parent dc6f86e commit 736846a

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed
 

‎bin/deploy.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export RAZZLE_PUBLIC_DIR=/var/app/current/build/public
22
export PORT=8081
33
export RAZZLE_AMPLITUDE_KEY=`eb printenv | grep -Eo "RAZZLE_AMPLITUDE_KEY.=.(.*)" | sed -E "s/RAZZLE_AMPLITUDE_KEY.=.//"`
4-
export RAZZLE_CDN_ROOT=https://d1h6ehl1pyzsu8.cloudfront.net
4+
export RAZZLE_CDN_ROOT=https://d24gftfomm9wsp.cloudfront.net
55

66
git branch | grep "* master" > /dev/null
77
if [ $? -ne 0 ]
@@ -25,7 +25,7 @@ mv .gitignore.deploy .gitignore
2525

2626
npm run build
2727
git add build
28-
aws s3 sync --size-only --acl public-read build/public/ s3://spaceship-earth/public/
28+
aws s3 sync --size-only --acl public-read build/public/ s3://spaceship-earth/public/ --profile=spaceship
2929
eb deploy Spaceship-$1 --staged
3030

3131
# move the real .gitignore back

‎razzle.config.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ module.exports = {
88
modify(config, { target, dev }, webpack) {
99
const appConfig = config; // stay immutable here
1010
if (!dev) {
11-
appConfig['output']['publicPath'] = 'https://d1h6ehl1pyzsu8.cloudfront.net/';
11+
appConfig["output"]["publicPath"] =
12+
"https://d24gftfomm9wsp.cloudfront.net/";
1213
}
1314
if (target == 'web') {
1415
if (appConfig['entry']['client'].pop) {

‎src/.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
RAZZLE_CDN_ROOT=https://d1h6ehl1pyzsu8.cloudfront.net
1+
RAZZLE_CDN_ROOT=https://d24gftfomm9wsp.cloudfront.net
22
RAZZLE_AMPLITUDE_KEY=035fb6a633ad17998c03c0b61ec3233f
33
RAZZLE_PUBLIC_DIR=/Users/igor/src/spaceship-earth/public
44

‎src/server/.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ IMGIX_SECRET=wtp9938guW99XPUx
1313
GOOGLE_KEY=623941983432-2ffu30gengmma1liije6e8u8d7mj44e6.apps.googleusercontent.com
1414
GOOGLE_SECRET=dbdMkngKCdjW_OunF50p6UjG
1515
SENTRY_DSN=https://63de8a81e019459ea78d0215a0cb33f8@sentry.io/1528518
16-
CDN_ROOT=https://d1h6ehl1pyzsu8.cloudfront.net
16+
CDN_ROOT=https://d24gftfomm9wsp.cloudfront.net
1717
APP_PROTOCOL=http
1818
APP_HOST=localhost
1919
APP_PORT=3000

0 commit comments

Comments
 (0)
Please sign in to comment.