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

Modulus APP_DIR is not correct use productionPrivateDir() instead #61

Closed
wants to merge 3 commits into from
Closed

Conversation

steve-ross
Copy link
Contributor

On the new meteor containers at modulus the APP_DIR is incorrect or no longer needed. Need to use productionPrivateDir to get the path or you will get template not found errors in production.

@steve-ross
Copy link
Contributor Author

I reported the issue with Modulus. We had an app break in production where we couldn't send any emails and this fixed the issue.

@johanbrook
Copy link
Contributor

Gotcha, thank you. Is APP_DIR completely deprecated, so it's safe to move away from it here?

@steve-ross
Copy link
Contributor Author

Not sure, I'll ask modulus support. All I know is that it is one directory up from where productionPrivateDir is at this point.

@johanbrook
Copy link
Contributor

So would it make sense to fallback to APP_DIR, instead of removing it for now?

@steve-ross
Copy link
Contributor Author

It may be that you just need to tack on 'bundle' if APP_DIR is defined.
APP_DIR = /mnt/app
productionPrivateDir() = /mnt/app/bundle

@steve-ross
Copy link
Contributor Author

Apparently that is a bug on modulus, they opened a ticket:

XervoIO/docker-build-meteor#14

@ivanthemeh
Copy link

Where does this productionPrivateDir() = /mnt/app/bundle and APP_DIR = /mnt/app get set at? In modulus env vars or in meteor_settings?
Please help out someone, my localhost is working for these but not modulus container

@johanbrook
Copy link
Contributor

@ivanthemeh You mean in this package or on Modulus? This package set path things in https://github.com/lookback/meteor-emails/blob/master/lib/utils.js#L40.

@ivanthemeh
Copy link

So do I need to add that and fork it or is it already added? My emails were working fine on modulus server and then all of a sudden it quit finding the templates. Please help, thanks!

@johanbrook
Copy link
Contributor

Try cloning this package locally into your Meteor app, do the necessary change above, and deploy to Modulus to see if it works. I haven't ever dealt with Modulus, so I can't sadly test it.

@steve-ross
Copy link
Contributor Author

closing, we have been using this in production for months, opening another PR which will contain this fix and a fix for meteor 1.3+

@steve-ross steve-ross closed this Aug 9, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants