-
Notifications
You must be signed in to change notification settings - Fork 213
OSX installation
In order to work on LocalSupport on Mac, please fork and clone the project.
- Install RVM
- Install Ruby 2.0.0
- Fork the http://github.com/AgileVentures/LocalSupport repo (fork button at top right of github web interface)
- Clone the new forked repo onto your dev machine
cd LocalSupport
- Install Qt webkit headers
Install Homebrew (if you don't have it already). If you do have Homebrew, run
brew update
after brew is installed or updated, typebrew install qt
. This will allow you to install capybara-webkit -v '1.0.0' successfully - Install postgreSQL
Type
psql
into command line. Then you should see this
psql (9.3.4)
Type "help" for help.
username=#
Next to that type ALTER ROLE "postgres" WITH CREATEDB
-
Install X virtual frame buffer
sudo apt-get install xvfb
-
git checkout develop
-
Run
bundle install
to get the gems -
Run
bower install
to get remaining dependencies -
Run the following to get the database set up and import seed data
bundle exec rake db:create bundle exec rake db:migrate bundle exec rake db:categories bundle exec rake db:seed bundle exec rake db:cat_org_import bundle exec rake db:pages bundle exec rake db:import:emails[db/emails.csv]
-
Follow the Feature flags instructions so that incomplete features run. If you hit problems, ask us on Slack chat.
[Note that rvm can be extremely helpful for managing ruby versions. Installing rvm on Ubuntu]
Debian 7 users can follow these instructions to launch Xvfb as daemon : Xvfb-on-Debian-7
and then in principle you can run rails server and see that app running locally.
The db/seeds.rb task that you ran added some organizations and a test user that you can experiment with. Read that file for more information.
Also you should run the specs and cucumber features to make sure your installation is solid. For confidence, you shall prepare the test database first by running
rake db:test:prepare
, then run tests using following commands:
bundle exec rake spec
bundle exec rake cucumber
and then when you start any BDD or TDD ensure autotest is running in the background:
bundle exec rake autotest
After that try running bundle install again.
- If you are having issues with PostgresQL - see PostgreSQL install instructions
- If you are having issues innstalling Qt webkit headers- see capybara-webkit gem