@MikeiLL
I test de ofn_deployment with canada-updates branch.
The code is deplyed ans is running.
But I can’t send emails.
When I try to send test email from configuration page, I get this error : Testmail error: Missing host to link to! Please provide the :host
parameter, set default_url_options[:host], or set :only_path to true
I try to create an enterprise, and I don’t receive confirmation email.
When I was struggling with the mail server, I wasn’t getting an error in the Spree admin portal (although the emails weren’t going through). What are your settings like in the Spree admin portal. Using the gmail SMTP mine were:
Possibly try installing and postfix and seeing if a mail sends from the command line. I’m not actually sure if the delayed job that sends the emails uses an external email program (postfix), but I found that getting a command line email working with my SMTP (gmail) account was a worthwhile endeavor in the troubleshooting process.
Also from what I remember I may have had to run sudo service monit restart, also documented about 2/3 of the way down this blog entry.
I install postfix and configure mail setting to use postfix. Then email testing is ok but confirmation email is not sent.
I tried to restart everything and finally, I receive the confirmation email.
On the confirmation email, the link is not providing https url :
Please click the link below to confirm your email and to continue setting up your profile.
Do you know where I should change this ?
And the URL of the logo img is in http on the email confirmation, maybe it should be in https ?
On my side, I open http port and nginx is doing redirection to https, then it’s not blocking.
Great! I’m still looking for some insight as to why the Logo image (and some others) are missing on my admin page. Do you have any insight on that by any chance?
I checked on my side and I don’t have this issue.
Is your folder and subfolders current/public have good permissions ?
On this directory, I have a link for assets which redirect to shared/assets
Did you see your web browser calling the logo on nginx error log ?
On nginx error log, I just have this error :
Looks like it may be an issue with server not allowing http connections, but from what I can see we are allowing connections on port 80. Would you mind comparing my /etc/nginx/sites-available/ofn_app_name file with yours:
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /usr/share/nginx/html;
index index.html index.htm;
# Make site accessible from http://localhost/
server_name localhost;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
# Uncomment to enable naxsi on this location
# include /etc/nginx/naxsi.rules
}
}
@MikeiLL, is your images missing are images about enterprises ?
I did an update of the OFN code from ansible script and I loose enterprises images.
These images are located under current/public/images. When an upgrade is done, the current directory is moved to released_old and then iamges are lost. I think this directory should be hosted under shared directory with a link to current directory like assets.
No, I’m using local storage, then the storage is under current/public/images.
If I run ansible playbook install.yml to upgrade version, then current directory is renamed released_old/ but under public sub directory, there is no image directory.
I just tried again to run install.yml playbook and I get the same result, logo and image of the entreprise is lost.
I copy the content of releases-old/2015-12-05-045103/public/images to current/public and I get back the images.
Then I think public/images should be relocated to shared directory and linked to public like assets directory.
Using S3 to store the image will probably help in version upgrade. The other point is S3 could provide better performance than local storage and share the storage if we need more than one webserver.