Skip to content

Instantly share code, notes, and snippets.

@didil
Last active January 3, 2016 05:39
Show Gist options
  • Save didil/8417043 to your computer and use it in GitHub Desktop.
Save didil/8417043 to your computer and use it in GitHub Desktop.
Testing / Environments / Deployment advice for FoodCircles

Environments

The project is missing properly maintained, cleanly separated environments, especially :

Development environment

  • A proper development database and seed data
  • Development API Keys, these can be hidden from the codebase using the figaro gem

Staging environment

  • A staging server running on a different box with an independent DB
  • Staging API Keys using the figaro gem again

Testing

  • The project basically has no unit tests and those which exist are not maintained, it could be too late to start adding tests all over the codebase but it could be good practice to: ** Fix existing tests ** Add tests for future features implemented
  • Integration tests using Cucumber/Rspec and Capybara could help reduce the need for manual checks after each deploy

Deployment

  • Add capistrano with a multistage configuration to allow deploying to staging and production
  • Run the tests before each deploy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment