From b40d63c0c134799a2e830c778e01a1f5f06caf12 Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Thu, 7 Mar 2013 21:44:25 -0500 Subject: [PATCH 1/3] added public/assets to gitignore because it seems to make sense --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 5a1b8996..fa253ffa 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ # git config --global core.excludesfile ~/.gitignore_global config/database.yml +public/assets # Ignore bundler config .bundle From 3c66e4c50f218f44de303ac3de5cacabf0121ada Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Thu, 7 Mar 2013 21:44:58 -0500 Subject: [PATCH 2/3] updated Gemfile with two gems needed for Linode. Sorry people who don't like therubyracer! --- Gemfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Gemfile b/Gemfile index fdf1ea45..cb1ac1c2 100644 --- a/Gemfile +++ b/Gemfile @@ -13,6 +13,8 @@ gem 'formtastic' gem 'json' gem 'rails3-jquery-autocomplete' gem 'best_in_place' +gem 'therubyracer' #optional +gem 'rb-readline' # Gems used only for assets and not required # in production environments by default. From 8ad75dadb6b180053b9b3f5a9fe457e86a965d53 Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Thu, 7 Mar 2013 21:48:20 -0500 Subject: [PATCH 3/3] added a few tips to the README that may be unhelpful to everyone who comes across them --- README.rdoc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.rdoc b/README.rdoc index f0125e40..9ed21fa0 100644 --- a/README.rdoc +++ b/README.rdoc @@ -13,3 +13,23 @@ app/assets/controllers/*: These files define actions you can do on the different app/assets/views/*.html.erb: Files in here define either html that is displayed when a certain action is called (like edit, or create) on a thing. E.G. app/assets/views/topic/new.html.erb would have a form for creating a new topic. We don't use that way very much anymore though. "Partial" views can be called elsewhere in ruby code and are prefixed with an underscore. So we focus more on the files starting with an underscore. Read through the comments at the top of each file to understand what they all do. app/assets/views/*.js.erb: Javascript that is called in response to, e.g., editing or creating a topic, synapse, etc. + +Setting up the database: + +1) Copy database.yml.default to database.yml + - Then you'll need to figure out how to configure it to work with Postgresql (which you need to install - try Herokuapp's exe or app) +2) In a terminal: + $ rake db:create + $ rake db:migrate + $ rake db:fixtures:load + +Running the server: + +$rails s #runs the server +$rails c #gives you an interactive console + +==Installing on Ubuntu + +I had a lot of trouble installing on Ubuntu +I had to install postgresql and libpq-dev. I had to do $rvm reinstall ruby-1.9.3-p125 +execjs complained there was no runtime, so I added gem 'therubyracer' to the Gemfile