-
Notifications
You must be signed in to change notification settings - Fork 36
Modulus APP_DIR is not correct use productionPrivateDir() instead #61
Conversation
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. |
Gotcha, thank you. Is |
Not sure, I'll ask modulus support. All I know is that it is one directory up from where productionPrivateDir is at this point. |
So would it make sense to fallback to |
It may be that you just need to tack on 'bundle' if APP_DIR is defined. |
Apparently that is a bug on modulus, they opened a ticket: |
Where does this productionPrivateDir() = /mnt/app/bundle and APP_DIR = /mnt/app get set at? In modulus env vars or in meteor_settings? |
@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. |
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! |
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. |
Pulling down updates from upstream
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+ |
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.