You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/deployment.md
+2-14Lines changed: 2 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,20 +1,8 @@
1
1
# Deployment
2
2
3
3
Webpacker hooks up a new `webpacker:compile` task to `assets:precompile`, which gets run whenever you run `assets:precompile`.
4
-
If you are not using Sprockets `webpacker:compile` is automatically aliased to `assets:precompile`. Remember to set `NODE_ENV` environment variable to production during deployment or when running the rake task.
4
+
If you are not using Sprockets `webpacker:compile` is automatically aliased to `assets:precompile`.
5
5
6
-
The `javascript_pack_tag` and `stylesheet_pack_tag` helper method will automatically insert the correct HTML tag for compiled pack. Just like the asset pipeline does it.
7
-
8
-
By default the output will look like this in different environments:
9
-
10
-
```html
11
-
<!-- In development mode with webpack-dev-server -->
@@ -34,7 +22,7 @@ We're essentially doing the following here:
34
22
* Creating an app on Heroku
35
23
* Creating a Postgres database for the app (this is assuming that you're using Heroku Postgres for your app)
36
24
* Adding the Heroku NodeJS and Ruby buildpacks for your app. This allows the `npm` or `yarn` executables to properly function when compiling your app - as well as Ruby.
37
-
* Pushing our code to Heroku and kicking off the deployment
25
+
* Pushing your code to Heroku and kicking off the deployment
0 commit comments