- Set up Git locally
- Fork the repo
- Install VirtualBox
- Install Vagrant
- Install Vagrant-Berkshelf plugin
$ vagrant plugin install vagrant-berkshelf - Request access to Okta Preview from TechOps
vagrant up
vagrant ssh
cd workspace
bundle install
echo "PORT=9292" > .env
echo "RACK_ENV=development" >> .env
bundle exec rake db:create
bundle exec rake db:migrate
bundle exec rake db:seed
RAILS_ENV=test bundle exec rake db:migrate
- All the tests (javascript + rspec)
$ bundle exec rake spec:ci
- All the rspec tests
$ bundle exec rspec
- One rspec test file
$ bundle exec rspec spec/.../..._spec.rb
- One rspec test block
$ bundle exec rspec spec/.../..._spec.rb:40
- Run the Jasmine tests
$ RAILS_ENV=test bundle exec rake spec:javascript- To run a single test:
$ RAILS_ENV=test bundle exec rake spec:javascript SPEC=my_test
- See the wiki for a guide on Manual Testing
$ bundle exec foreman start(this will not return)
If your foreman is very slow, try getting a new network setup:
$ sudo dhclient(this will give a File Exists, that's ok)$ bundle exec foreman start
View the dev site locally:
http://localhost:9292/
When deploying to a new Heroku instance (developers will NOT need to do this), please specify e-mail account settings in the following configuration variables.
Account details for sending emails from:
MAIL_SERVER=smtp.gmail.comMAIL_PORT=587MAIL_DOMAIN=thoughtworks.orgMAIL_USERNAME=do-not-reply@thoughtworks.orgMAIL_PASSWORD=<password>MAIL_TLS=true
The Address that should appear in the "from" line of the sent e-mails:
MAIL_FULL_EMAIL="TW ReviewSite <do-not-reply@thoughtworks.org>"
The base domain that should be used for the links that appear in the emails.
DOMAIN=twreviewsite.herokuapp.com
In order to prevent the mailer from sending e-mail on non-production heroku instance, it is possible to redirect all e-mail to an address that you control.
EMAIL_OVERRIDE=someone@somewhere.com
Any dev questions can be sent to tw-review-site@thoughtworks.com and it will be seen by all members of the Review Site team.