From 93c08313736da6738fc2361f2ad5bd0217f9ad8b Mon Sep 17 00:00:00 2001 From: "Jean-Mathieu \"JM\" Janzen" Date: Fri, 23 Feb 2024 15:06:43 -0500 Subject: [PATCH] Update deployment.md Fix some inconsistent formatting. --- docs/deployment.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/docs/deployment.md b/docs/deployment.md index fb0ed486e..970d3bfc9 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -3,8 +3,6 @@ Webpacker hooks up a new `webpacker:compile` task to `assets:precompile`, which gets run whenever you run `assets:precompile`. If you are not using Sprockets `webpacker:compile` is automatically aliased to `assets:precompile`. -``` - ## Heroku In order for your Webpacker app to run on Heroku, you'll need to do a bit of configuration before hand. @@ -19,10 +17,10 @@ git push heroku master We're essentially doing the following here: -* Creating an app on Heroku -* Creating a Postgres database for the app (this is assuming that you're using Heroku Postgres for your app) +* Creating an app on Heroku. +* Creating a Postgres database for the app (this is assuming that you're using Heroku Postgres for your app). * 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. -* Pushing your code to Heroku and kicking off the deployment +* Pushing your code to Heroku and kicking off the deployment. ## Nginx @@ -78,7 +76,7 @@ If you want to serve Brotli compressed files with nginx, you will need to instal Once installed, you need to load the module. As we want to serve the pre-compressed files, we only need the static module. Add the following line to your `nginx.conf` file and reload nginx: -``` +```nginx load_module modules/ngx_http_brotli_static_module.so; ```