The translation files are in config/locales, all the files named *.en.yml are English and all the files named *.fr.yml are French.
E.g. How to translate the file 'fr.yml':
- Goto the master branch on GitHub (always make your changes on the master branch)
- Click the 'config' folder
- Click the 'locales' folder
- Click the 'fr.yml' file
- Click 'Edit'
- Make the appropriate changes to the file
- Click 'Commit Changes'
Please note that .yml files are very sensitive to whitespace and to quotation marks, if they are incorrect it will break.
The deploy source is the production branch. To deploy run cap production deploy
The deploy source is the staging branch. To deploy run cap staging deploy
$ git clone git@github.com:PowerToChange/Connect-Followup-App.git
$ cd Connect-Followup-App
$ cp config/database.yml.example config/database.yml
$ cp config/application.yml.example config/application.yml
$ subl config/application.yml
$ rake db:setup
You will also have to install memcached, this is platform-specific.
Tests are written in Rspec, to run them type rake spec
Because the app is coupled to the CiviCRM API we use VCR to record API responses for testing purposes. When API requests change then the relevant tape needs to be removed and re-recorded for tests to pass. Simply delete the relevant *.yml files and they will automatically be regenerated.
- Go to
/admin - Sign in with email: admin@example.com and password: password
The app contains several forms of caching for performance reasons.
Some CiviCRM data is cached in the database, including: Surveys and their associated Fields, Schools, and connections ( Leads ). These are just Rails data models. These "caches" can be cleared from the Admin interface.
Another form of caching uses the server memory (memcached) to cache some requests to the CiviCRM API when it is not necessary to immediately send the request again.
Visit the survey inside the admin interface and click 'Re-Sync Survey Fields From CiviCrm'
Visit the Schools page inside the admin interface and click 'Sync All Schools From CiviCrm'
Clearing this cache should typically not be necessary because it automatically invalidates itself. Clearing it requires sudo access to the server.
To clear the cache ssh into the server and then type sudo service memcached restart
To restart the application server ssh in and type touch /home/ubuntu/Connect-Followup-App/current/tmp/restart.txt