Send email asynchroniously using Sidekiq.
Create your mailer us usual:
| Assuming you have correctly installed cypress and can run it headless: yarn run cypress run (or whichever way you run it, npm etc) | |
| 1. You need an X-Server on the host. | |
| On Linux, you already have and X Server running | |
| On Mac, On Mac OSX you can install XQuartz | |
| 2. Enable X-forwarding on your Vagrant VM | |
| Just add this to your Vagrantfile |
| sudo dpkg -r code | |
| sudo dpkg -i code_downloaded_package.deb |
| To match 07xx xxx xxx number | |
| /^0(7(?:(?:[129][0-9])|(?:0[0-8])|(4[0-1]))[0-9]{6})$/ | |
| To match +254 7xx xxx xxx | |
| /^(?:+254)?(7(?:(?:[129][0-9])|(?:0[0-8])|(4[0-1]))[0-9]{6})$/ | |
| To match 254 7xx xxx xxx |
| #config for the domain | |
| server { | |
| listen 80 default_server; | |
| listen [::]:80; | |
| server_name miraclemanner.org miraclemanner.org; | |
| passenger_enabled on; | |
| passenger_app_root /home/deploy/miracle_manner/current; | |
| rails_env production; | |
| root /home/deploy/miracle_manner/current/public; |
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| # All Vagrant configuration is done below. The "2" in Vagrant.configure | |
| # configures the configuration version (we support older styles for | |
| # backwards compatibility). Please don't change it unless you know what | |
| # you're doing. | |
| Vagrant.configure("2") do |config| | |
| config.vm.box = "ubuntu/xenial64" |