For developers

kej edited this page Nov 20, 2012 · 9 revisions

Rails applications are usually running in three different environments, development, testing, and production. Here we explain how to set up a development and a production environment. We are using a Linux system. To use the same setup as we do, you can set up a Virtual Machine with a Linux system: Installing Ubuntu development environment in Virtual Box and then set up the development environment for the rails application in the Virtual Machine: Configuring an ubuntu development machine. The configuration includes downloading and installing the code of this repository: How to download the code.

Update to current code in development.

After becoming more comfortable with the system, you may have some ideas how to Improve the code. You can then fork the code and develop in your own branch. Please consider integrating the changes of the default branch into your fork and also to integrate your code into the default branch! After having done changes and having tested the changes thoroughly, you will want to roll out your code to production, which includes the set up of a staging system.

We try out new code in a staging environment first, for which we copy the database of the productive system into a second production environment called "staging", and try out this environment first, before updating the productive environment itself https://github.com/befdata/befdata/blob/master/ext/copy-production-state-to-staging.sh.

Befdata is registered with https://codeclimate.com/github/befdata/befdata/. This is an excellent way of meditating on code quality.

We found it usefull to use Google Analytics and Teamcity with our BEFdata platforms.

How to use new relic with a BEFdata platform.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.