Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

- removed cucumber_structure.sql from repository and added to gitignore

- updated README
- added aross@opencongress.org email to travis-ci
- removed postgres user references in initial schema
- fixed fixture problems on cucumber tasks
- removed/fixed deprecated rake tasks in plugins (either non-existant or obsolete)
  • Loading branch information...
commit 6dfaa814bfcc763fbbca7f0bfa343174066cd8f2 1 parent 685af63
aross aross authored
1  .gitignore
View
@@ -3,6 +3,7 @@ log/*.log
tmp/**/*
tmp/*
data/*
+db/cucumber_structure.sql
db/development_structure.sql
db/schema.rb
public/assets/*
1  .travis.yml
View
@@ -8,3 +8,4 @@ script: "bundle exec rake spec"
notifications:
email:
- dougcole@gmail.com
+ - aross@opencongress.org
50 README.md
View
@@ -10,7 +10,7 @@
### A. Dependencies
-Start by installing all the packages required by OpenCongress.
+Start by installing all the packages required by OpenCongress. The main dependencies are postgres and ImageMagick; OpenCongress will not run on mysql or sqlite. The following commands are suggestions, but ultimately you'll need to get postgres running to be able to run the app. We are currently running version of postgres 8.4.4 in production.
For Ubuntu:
@@ -18,16 +18,21 @@ For Ubuntu:
---
-or Mac OS X, start by installing [MacPorts](http://www.macports.org/), then run:
+For Mac OS X, start by installing [MacPorts](http://www.macports.org/), then run:
sudo port install postgresql84 postgresql84-doc postgresql84-server ImageMagick md5sha1sum wget
-Follow the instructions from the port install for initializing your database
+or, if you want to use [Homebrew](http://mxcl.github.com/homebrew/) (this will install version Postgres 8.4.4):
+
+ brew install imagemagick
+ brew install https://github.com/adamv/homebrew-alt/raw/master/versions/postgresql8.rb
+
+Follow the instructions after the packages install for initializing your database
---
-Then grab the gems you need:
+Install the bundle:
<pre>
<code>
@@ -36,40 +41,43 @@ bundle install
</code>
</pre>
-__Note for OS X:__ *You may need to specify additional compile options for the pg gem. Make sure pg_config is in PATH and run* `sudo env ARCHFLAGS="-arch x86_64" gem install pg`
+__Note for OS X:__ *You may need to specify additional compile options for your gems. Try: `ARCHFLAGS="-arch x86_64" bundle install`
### B. Database setup
-Create a postgresql install, based on the database.yml file:
+Running the following commands will create an 'opencongress' user and empty databases for the three environments (test, development, production). The migration command will populate the development database with an empty schema.
+<pre>
+<code>
rake db:init
+rake db:migrate
+</code>
+</pre>
-Import the tsearch2 backwards compatibility lib from wherever your postgres contribs got installed.
+### C. Data (optional)
+
+We are developing a process to quickly import some real legislative data. Coming soon.
- psql opencongress_development < /your/install/share/postgresql/contrib/8.4/tsearch2.sql
+### D. Starting the server
+
+OpenCongress uses Solr to store some data. The following command is not required, but some pages will break if Solr is not running:
-`exit` postgres user
+ rake solr:start
-### C. App Setup
+To start the webserver:
-Now you can start the solr server and run the database migrations
+ rails s
- cd ..;rake solr:start
- rake db:structure:load
- rake db:seed
+---
-### D. Data
-
-create some dirs for data
+We are actively working to make the install process easier for new volunteers. Special thanks to Doug Cole for moving us along in this regard.
-Make sure all your data paths are set and exist in your environment file then run `rake update:all` to fetch and parse all available data sources. This process will take a very long time. Take a look at /lib/tasks/daily.rake for all the rake tasks if you want to run them individually.
+---
-Now just a `script/server` and you should be running
-
<div class="hideme">
<hr />
-<p>Copyright (c) 2005-2010 Participatory Politics Foundation</p>
+<p>Copyright (c) 2005-2012 Participatory Politics Foundation</p>
<p>OpenCongress is licensed, as a whole, under AGPLv3. Components added prior to
OpenCongress version 3 (July 27, 2011) were and are licensed under GPLv3. All components added for or after
6,702 db/cucumber_structure.sql
View
0 additions, 6,702 deletions not shown
2  db/migrate/initial_schema.sql
View
@@ -6908,8 +6908,6 @@ CREATE TRIGGER upcoming_bill_tsvectorupdate
--
REVOKE ALL ON SCHEMA public FROM PUBLIC;
-REVOKE ALL ON SCHEMA public FROM postgres;
-GRANT ALL ON SCHEMA public TO postgres;
GRANT ALL ON SCHEMA public TO PUBLIC;
4 features/fixtures/users.yml
View
@@ -10,13 +10,11 @@ users_001:
default_filter: "5"
mailing: f
last_login: 2010-04-02 08:49:05.425035
- remember_token_expires_at:
crypted_password: e9df7394fdecfe1d3c354ef7818ba93ba9c67578
chat_msn: ""
zipcode: 01084
password_reset_code:
updated_at: 2010-04-02 08:49:05.426847
- sso_key:
zip_four: "9605"
activation_code:
admin: f
@@ -68,13 +66,11 @@ users_002:
default_filter: "5"
mailing: t
last_login: 2010-04-06 14:26:56.149317
- remember_token_expires_at:
crypted_password: 0789967153cdd211bc1d07852a4eb26c0530c0d4
chat_msn:
zipcode: "20002"
password_reset_code:
updated_at: 2010-04-06 14:26:56.151032
- sso_key:
zip_four:
activation_code:
admin: f
2  lib/tasks/hoptoad_notifier_tasks.rake
View
@@ -3,7 +3,7 @@
# https://thoughtbot.lighthouseapp.com/projects/14221/tickets/629
unless ARGV.any? {|a| a =~ /^gems/}
- Dir[File.join(RAILS_ROOT, 'vendor', 'gems', 'hoptoad_notifier-*')].each do |vendored_notifier|
+ Dir[File.join(Rails.root.to_s, 'vendor', 'gems', 'hoptoad_notifier-*')].each do |vendored_notifier|
$: << File.join(vendored_notifier, 'lib')
end
4 vendor/plugins/acts_as_bookmarkable/tasks/acts_as_bookmarkable_tasks.rake
View
@@ -1,4 +0,0 @@
-# desc "Explaining what the task does"
-# task :acts_as_bookmarkable do
-# # Task goes here
-# end
24 vendor/plugins/open_flash_chart_2/tasks/open_flash_chart_tasks.rake
View
@@ -1,24 +0,0 @@
-namespace :open_flash_chart_2 do
- PLUGIN_ROOT = File.dirname(__FILE__) + '/../'
-
- desc 'Installs required swf in public/ and javascript files to the public/javascripts directory.'
- task :install do
- FileUtils.cp "#{PLUGIN_ROOT}requirements/open-flash-chart.swf", "#{RAILS_ROOT}/public/", :verbose => true
- FileUtils.cp "#{PLUGIN_ROOT}requirements/swfobject.js", "#{RAILS_ROOT}/public/javascripts/", :verbose => true
- end
-
- desc 'Removes the swf and javascripts for the plugin.'
- task :uninstall do
- FileUtils.rm "#{RAILS_ROOT}/public/javascripts/swfobject.js", :force => true, :verbose => true
- FileUtils.rm "#{RAILS_ROOT}/public/open-flash-chart.swf", :force => true, :verbose => true
- end
-
- desc 'Removes the old swf and javascripts for the plugin and copy new one to public direcory.'
- task :reinstall do
- FileUtils.rm "#{RAILS_ROOT}/public/javascripts/swfobject.js", :force => true, :verbose => true
- FileUtils.rm "#{RAILS_ROOT}/public/open-flash-chart.swf", :force => true, :verbose => true
-
- FileUtils.cp "#{PLUGIN_ROOT}requirements/open-flash-chart.swf", "#{RAILS_ROOT}/public/", :verbose => true
- FileUtils.cp "#{PLUGIN_ROOT}requirements/swfobject.js", "#{RAILS_ROOT}/public/javascripts/", :verbose => true
- end
-end
4 vendor/plugins/remote_forgery_protection/tasks/remote_forgery_protection_tasks.rake
View
@@ -1,4 +0,0 @@
-# desc "Explaining what the task does"
-# task :remote_forgery_protection do
-# # Task goes here
-# end
Please sign in to comment.
Something went wrong with that request. Please try again.