rack-pow

Environment variable in Rails console and Pow

自作多情 提交于 2019-12-01 16:14:19
问题 I can't access env variables in the Rails console, while in the application they work. In .powenv I have export SENDGRID_PASSWORD="123" In config/initializers/mail.rb there is: ActionMailer::Base.smtp_settings = { :password => ENV['SENDGRID_PASSWORD'] } So in the console when I type UserMailer.welcome_mail.deliver there is an error 'ArgumentError: SMTP-AUTH requested but missing secret phrase'. However from the application it sends the mail successfully. How can I make the env variables

Rails 3.2.8 - Share Devise Sessions Across Subdomains with POW

纵饮孤独 提交于 2019-12-01 03:35:39
问题 I am trying to set up a simple subdomain-based blog in rails 3.2.8. Basically it will have sites, users (authenticated through Devise), and memberships to connect users to sites. I set up POW so that myapp.dev is working properly. Each site has a subdomain and I can navigate to the site#show action using the subdomains with no problems. My issue is that I can't get the Devise sessions to be shared across subdomains. Everything is working fine on my heroku app, but I would like to be able to

How can I stop the Pow server from starting up at computer boot (OS X)?

五迷三道 提交于 2019-11-30 22:50:00
TL;DR: Is there a way to disable the Pow server from starting when my machine boots up, but retain the ability to launch the server manually via powder up when I need it to run? I am using Pow for my local development (and managing via the Powder gem ). I'd like to set up Pow so that the server isn't started automatically on boot, as running it drains my battery life and I'm not always coding. Pow has added itself to launchd and I can't seem to get to a scenario where the Pow server is not running after startup, but can still be run via a powder up or other equivalent command when I need to