RailsCasts Pro episodes are now free!

Learn more or hide this

Alexander Balashov's Profile

GitHub User: divineforest

Site: https://teatro.io

Comments by Alexander Balashov

Avatar

If you want to use Twitter authentication in https://teatro.io/ first create special stage application in Twitter and then set domain as project-token.ttrcloud.com and authentication urls as http://project-token.ttrcloud.com. It will work on any branch of this project.

Avatar

If you want to use Facebook authentication in https://teatro.io/ first create special stage application in Facebook and then set domain as project-token.ttrcloud.com and authentication urls as http://project-token.ttrcloud.com. It will work on any branch of this project.

Avatar

If you want to use sidekiq in https://teatro.io/ you need to create Procfile like this:

web:     bundle exec rails server
sidekiq: bundle exec sidekiq
Avatar

If you need VPS just for stage you can use https://teatro.io/ instead.

Avatar

Adding separate env for staging looks like not a good idea, because it will differ from real production. BTW you can use special service for stages https://teatro.io/ that will automate the whole process.

Avatar

This gem https://github.com/evrone/factory_girl-seeds helps to minimize total spec run time by preloading records for factory_girl and then use them in spec.

Avatar

Ryan, FactoryGirl.build implictly creates records in database when it has associations. Maybe it's better to use just Model.new for things like validations instead of build()?