Set ASSETS_HOST for s3 deployment

The page needs to explicitly set host to our s3's bucket, because
otherwise it will be relative to the heroku app's URL
This commit is contained in:
Piotr Sarnacki 2015-02-17 15:27:55 +01:00
parent ee4564c72b
commit 6ef1e479fd

View File

@ -27,7 +27,7 @@ notifications:
secure: "JJezWGD9KJY/LC2aznI3Zyohy31VTIhcTKX7RWR4C/C8YKbW9kZv3xV6Vn11\nSHxJTeZo6st2Bpv6tjlWZ+HCR09kyCNavIChedla3+oHOiuL0D4gSo+gkTNW\nUKYZz9mcQUd9RoQpTeyxvdvX+l7z62/7JwFA7txHOqxbTS8jrjc="
before_deploy:
- DISABLE_FINGERPRINTS=true ember build --env production
- ASSETS_HOST=https://s3.amazonaws.com/travis-error-pages ember build --env production
# delete some of the stuff that's useless for maintenance page
- rm -fr dist/assets/*.js dist/images/emoji dist/index.html dist/images/sponsors
- cp dist/maintenance.html dist/index.html