Not quite dev, not quite production


(Andrew Waugh) #1

I have a VM installation with Ubuntu 16.04 docker standalone per: discourse/INSTALL-cloud.md at master · discourse/discourse · GitHub

I use this as a sandbox to try various things out rather than experimenting around on our live install (forums.jag-lovers.com).

The installation is fine (kudos on making it so simple), and I’ve restored a backup from our live site to have some data to play with (I edited app.yml and put bad values in the smtp values to make sure it wouldn’t start sending emails and such).

Sidekiq is of course bombing out because there are outgoing mail errors.

Can I add mailcatcher to a standalone install? How?


(Jay Pfaffman) #2

See the setting: disable emails.


(Andrew Waugh) #3

I’ve done that (in the meantime), but I’d like to have mailcatcher on so that I can see the mailflow as well.

EDIT:
I’m guessing that I would need to do “gem install mailcatcher” and then start it manually at each boot and re install the gem every time there is a discourse update.


(Sam Saffron) #4

You could engineer the yaml file to install mailcatcher and start it same way it starts other services. Then you could export the port out of the container.

Alternatively you can run mailcatcher on the host and just set up the ENV to talk to it.


(Jay Pfaffman) #5

You might be able to automate at least some of that by adding code to the “custom commands” at the bottom of your app.yml.