@@ -3,12 +3,12 @@ FAQ and Common Issues
3
3
4
4
.. _how-do-i-deploy-my-encore-assets :
5
5
6
- How do I deploy my Encore Assets?
6
+ How Do I Deploy My Encore Assets?
7
7
---------------------------------
8
8
9
9
There are two important things to remember when deploying your assets.
10
10
11
- **1) Compile assets for production **
11
+ **1) Compile Assets for Production **
12
12
13
13
Optimize your assets for production by running:
14
14
@@ -19,11 +19,12 @@ Optimize your assets for production by running:
19
19
That will minify your assets and make other performance optimizations. Yay!
20
20
21
21
But, 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](https://rsync.samba.org/) or something else to transfer the built files
24
+ to your production server. Or, you could put your files on your production server
25
+ first (e.g. via ``git pull ``) and then run this command on production
26
+ (ideally, before traffic hits your code). In this case, you'll need to install
27
+ Node.js on your production server.
27
28
28
29
**2) Only Deploy the Built Assets **
29
30
@@ -34,13 +35,13 @@ asset files, **unless** you plan on running ``encore production`` on your produc
34
35
machine. Once your assets are built, these are the *only * thing that need to live
35
36
on the production server.
36
37
37
- Do I need to Install Node.js on my Production Server?
38
+ Do I Need to Install Node.js on My Production Server?
38
39
-----------------------------------------------------
39
40
40
41
No, 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? `_.
42
43
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?
44
45
-------------------------------------------------------------
45
46
46
47
You should commit all of your files to git, except for the ``node_modules/ `` directory
0 commit comments