]> cat aescling's git repositories - mastodon.git/commitdiff
Don't set ASSET_HOST on build:development (#3936)
authorunarist <m.unarist@gmail.com>
Sun, 25 Jun 2017 10:52:42 +0000 (19:52 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Sun, 25 Jun 2017 10:52:42 +0000 (12:52 +0200)
Setting ASSET_HOST to `http://0.0.0.0:8080` makes urls in manifest.json to
be invalid, e.g. `http://0.0.0.0:8080/packs/application.js`.

Anyway, we don't need set this on build:development because assets would
be delivered from same origin in development (and w/o dev-server).

package.json

index 8cbcea92b74945533632442a663ebd648dc42b06..d1fd22fb572468df1db4c6084636e3e1b0709d2a 100644 (file)
@@ -3,7 +3,7 @@
   "license": "AGPL-3.0",
   "scripts": {
     "postversion": "git push --tags",
-    "build:development": "cross-env RAILS_ENV=development ASSET_HOST=http://0.0.0.0:8080 ./bin/webpack",
+    "build:development": "cross-env RAILS_ENV=development ./bin/webpack",
     "build:production": "cross-env RAILS_ENV=production ./bin/webpack",
     "manage:translations": "node ./config/webpack/translationRunner.js",
     "start": "rimraf ./tmp/streaming && babel ./streaming/index.js --out-dir ./tmp && node ./tmp/streaming/index.js",