Skip to content

Commit 7d7059c

Browse files
authored
Clean up deployment instructions (#3231)
No need to duplicate basics.
1 parent f17442f commit 7d7059c

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

docs/deployment.md

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,8 @@
11
# Deployment
22

33
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`.
55

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 -->
12-
<script src="http://localhost:8080/calendar-0bd141f6d9360cf4a7f5.js"></script>
13-
<link rel="stylesheet" media="screen" href="http://localhost:8080/calendar-dc02976b5f94b507e3b6.css">
14-
15-
<!-- In production or development mode -->
16-
<script src="/packs/js/calendar-0bd141f6d9360cf4a7f5.js"></script>
17-
<link rel="stylesheet" media="screen" href="/packs/css/calendar-dc02976b5f94b507e3b6.css">
186
```
197
208
## Heroku
@@ -34,7 +22,7 @@ We're essentially doing the following here:
3422
* Creating an app on Heroku
3523
* Creating a Postgres database for the app (this is assuming that you're using Heroku Postgres for your app)
3624
* 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
3826

3927
## Nginx
4028

0 commit comments

Comments
 (0)