RailsCasts Pro episodes are now free!
Learn more or hide this
It would be great to see how to setup capistrano to use staging environment may be the next screencasts :)
I don't know about Capistrano but, I do have a solution for staging environments using Vlad on my blog.
I've been using a custom environment for beta testing and it works really well. I can have beta testers using an edge version of my code while the production users data is unaffected. I can also give beta testers more info in their error messages.
Thanks for the tip.
One thing that made me curious enough to dig thru the initializer code was the bit on having to set the config.log_level = :debug. This isn't necessary. The initializer only sets the log level to :info if the environment == 'production'. Otherwise, all other environments are set to :debug
Look at the multistage plugin for capistrano, it will work nicely with additional environments.
Just found that you cannot use the underscore character (and possibly others) in the environment name.
I was after development_home, but had to settle for developmenthome.
Just found that you cannot use the - character either in the environment name.
I tried to use staging-02 but had to settle for staging2.
It's good enough, but if you have a real project and don't want to waste a lot of time to setup test environment, you can try https://teatro.io
Is railscasts back? It's been a while since we had an update. Thanks!
There's a lot of spam here :(
so nice post in short words.