Skip to content
This repository was archived by the owner on Jan 22, 2021. It is now read-only.

Commit 87a60ef

Browse files
committed
update README
1 parent c62339b commit 87a60ef

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

README.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -173,17 +173,14 @@ Mailer.send(
173173

174174
Simple as a pie!
175175

176-
#### Important note regarding template paths
177-
178-
**tldr;** Set the `BUNDLE_PATH` environment variable to the absolute path to your Meteor app bundle directory.
176+
### Template paths on deployed instances
179177

180178
This package assumes that assets (templates, SCSS, CSS ..) are stored in the `private` directory. Thanks to that, Meteor won't touch the HTML and CSS, which are non-JS files. Unfortunately, Meteor packages can't access content in `private` with the `Assets.getText()` method, so we need the *absolute path* to the template directory.
181179

182-
However, since the file paths are screwed up when bundling and deploying Meteor apps, we need to set the `BUNDLE_PATH` env var to keep track of where the bundle lives. When deployed, set the `BUNDLE_PATH` env var to the location, perhaps:
180+
However, file paths are screwed up when bundling and deploying Meteor apps. Therefore, when running a deployed instance, **one of the following variables must return the absolute path to the bundle...**
183181

184-
```
185-
/var/www/app/bundle
186-
```
182+
1. For traditional hosts, manually set the `BUNDLE_PATH` environment variable. example: `/var/www/app/bundle`
183+
2. For deployments on hosts with ephemeral file systems like Modulus, the `process.env.APP_DIR` variable should be provided by host
187184

188185
### Template Helpers
189186

0 commit comments

Comments
 (0)