ember-cli-rails 0.8.1 → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +14 -4
- data/lib/ember_cli/deploy/file.rb +15 -3
- data/lib/ember_cli/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af3a20f6caa120e87d2e61347d2bb117b5bcad75
|
4
|
+
data.tar.gz: 304bfae43332d480932067522ef703c780d04207
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f0186521688b4bc2730641f1526004f295b37ebf21e26e506363879f0540dd736743bd19bcdda9b906956fe4f69f77ac823f4d3f43812a33d1d46ef707f0f07
|
7
|
+
data.tar.gz: 70ca38c2abbc29ee08ce154e6d6e9554ce45110eabd678ea4164165ecb6e35c66d7072a2e26a40c5a45aecdedf200482ec191495f62dbc36534331bbc92bc8a0
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -278,6 +278,16 @@ applications into the project.
|
|
278
278
|
|
279
279
|
[buildpack]: https://devcenter.heroku.com/articles/using-multiple-buildpacks-for-an-app#adding-a-buildpack
|
280
280
|
|
281
|
+
#### Slug size
|
282
|
+
|
283
|
+
[Heroku slug size is limited](https://devcenter.heroku.com/articles/slug-compiler#slug-size). The build process creates artifacts that are not necessary for the server to run, but are included in the deployed Heroku slug.
|
284
|
+
|
285
|
+
Omitting these build assets can dramatically reduce slug size.
|
286
|
+
|
287
|
+
A build-pack solution for this is discussed in [Issue #491][#491].
|
288
|
+
|
289
|
+
[#491]: https://github.com/thoughtbot/ember-cli-rails/issues/491
|
290
|
+
|
281
291
|
### Capistrano
|
282
292
|
|
283
293
|
EmberCLI-Rails executes both `npm install` and `bower install` during EmberCLI's
|
@@ -304,7 +314,7 @@ contains the directory or directories that contain the `bower` and `npm`
|
|
304
314
|
executables.
|
305
315
|
|
306
316
|
#### For faster deployments
|
307
|
-
Place the following in your deploy/<environment>.rb
|
317
|
+
Place the following in your deploy/<environment>.rb
|
308
318
|
```ruby
|
309
319
|
set :linked_dirs, %w{<ember-app-name>/node_modules <ember-app-name>/bower_components}
|
310
320
|
```
|
@@ -456,7 +466,7 @@ Rails.application.routes.draw do
|
|
456
466
|
end
|
457
467
|
```
|
458
468
|
|
459
|
-
Then set each Ember application's `
|
469
|
+
Then set each Ember application's `rootURL` to the mount point:
|
460
470
|
|
461
471
|
```javascript
|
462
472
|
// frontend/config/environment.js
|
@@ -465,7 +475,7 @@ module.exports = function(environment) {
|
|
465
475
|
var ENV = {
|
466
476
|
modulePrefix: 'frontend',
|
467
477
|
environment: environment,
|
468
|
-
|
478
|
+
rootURL: '/',
|
469
479
|
// ...
|
470
480
|
}
|
471
481
|
};
|
@@ -476,7 +486,7 @@ module.exports = function(environment) {
|
|
476
486
|
var ENV = {
|
477
487
|
modulePrefix: 'admin_panel',
|
478
488
|
environment: environment,
|
479
|
-
|
489
|
+
rootURL: '/admin_panel', // originally '/'
|
480
490
|
// ...
|
481
491
|
}
|
482
492
|
};
|
@@ -29,9 +29,21 @@ module EmberCli
|
|
29
29
|
attr_reader :app
|
30
30
|
|
31
31
|
def rack_headers
|
32
|
-
|
33
|
-
|
34
|
-
|
32
|
+
config = Rails.configuration
|
33
|
+
|
34
|
+
if config.respond_to?(:public_file_server) &&
|
35
|
+
config.public_file_server && config.public_file_server.headers
|
36
|
+
# Rails 5.
|
37
|
+
config.public_file_server.headers
|
38
|
+
elsif config.respond_to?(:static_cache_control)
|
39
|
+
# Rails 4.2 and below.
|
40
|
+
{
|
41
|
+
"Cache-Control" => Rails.configuration.static_cache_control,
|
42
|
+
}
|
43
|
+
else
|
44
|
+
# No specification.
|
45
|
+
{}
|
46
|
+
end
|
35
47
|
end
|
36
48
|
|
37
49
|
def check_for_error_and_raise!
|
data/lib/ember_cli/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ember-cli-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Pravosud
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-
|
13
|
+
date: 2016-10-24 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: ember-cli-rails-assets
|
@@ -126,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
126
126
|
version: '0'
|
127
127
|
requirements: []
|
128
128
|
rubyforge_project:
|
129
|
-
rubygems_version: 2.
|
129
|
+
rubygems_version: 2.5.0
|
130
130
|
signing_key:
|
131
131
|
specification_version: 4
|
132
132
|
summary: Integration between Ember CLI and Rails
|