@@ -3,12 +3,12 @@ FAQ and Common Issues
33
44.. _how-do-i-deploy-my-encore-assets :
55
6- How do I deploy my Encore Assets?
6+ How Do I Deploy My Encore Assets?
77---------------------------------
88
99There are two important things to remember when deploying your assets.
1010
11- **1) Compile assets for production **
11+ **1) Compile Assets for Production **
1212
1313Optimize your assets for production by running:
1414
@@ -19,11 +19,12 @@ Optimize your assets for production by running:
1919 That will minify your assets and make other performance optimizations. Yay!
2020
2121But, what server should you run this command on? That depends on how you deploy.
22- For example, you could execute this locally (or on a build server), and use rsync
23- or something else to transfer the built files to your server. Or, you could put your
24- files on your production server first (e.g. via a git pull) and then run this command
25- on production (ideally, before traffic hits your code). In this case, you'll need
26- to install Node.js on your production server.
22+ For example, you could execute this locally (or on a build server), and use
23+ `rsync `_ or something else to transfer the generated files to your production
24+ server. Or, you could put your files on your production server first (e.g. via
25+ ``git pull ``) and then run this command on production (ideally, before traffic
26+ hits your code). In this case, you'll need to install Node.js on your production
27+ server.
2728
2829**2) Only Deploy the Built Assets **
2930
@@ -34,13 +35,13 @@ asset files, **unless** you plan on running ``encore production`` on your produc
3435machine. Once your assets are built, these are the *only * thing that need to live
3536on the production server.
3637
37- Do I need to Install Node.js on my Production Server?
38+ Do I Need to Install Node.js on My Production Server?
3839-----------------------------------------------------
3940
4041No, unless you plan to build your production assets on your production server,
41- which is not recommended. See `How do I deploy my Encore Assets? `_.
42+ which is not recommended. See `How Do I Deploy my Encore Assets? `_.
4243
43- What Files Should I commit to git? And which should I Ignore?
44+ What Files Should I Commit to git? And which Should I Ignore?
4445-------------------------------------------------------------
4546
4647You should commit all of your files to git, except for the ``node_modules/ `` directory
@@ -131,3 +132,5 @@ this via:
131132
132133 // require a non-minified file whenever possible
133134 require (' respond.js/dest/respond.src.js' );
135+
136+ .. _`rsync` : https://rsync.samba.org/
0 commit comments