Browse files

Updated readme and added tasks to Rakefil

  • Loading branch information...
1 parent b44df31 commit 3a38157c75262ba0257f8a06ec28c439b5ae6a7b @soffes committed Nov 5, 2009
Showing with 51 additions and 1 deletion.
  1. +21 −1 README.markdown
  2. +30 −0 Rakefile
View
22 README.markdown
@@ -2,6 +2,26 @@
This is my "business card site". I should probably add some contact info and portfolio links, but for now I'll keep it simple.
-This simple one-pager runs [Sinatra](http://www.sinatrarb.com/) on [Heroku](http://heroku.com/). [Compass](http://compass-style.org/) is used for stylesheet awesomeness.
+This simple one-pager runs [Sinatra][] on [Heroku][]. [Compass][] is used for stylesheet awesomeness.
Feel free to fork or rip off anything I have (although I would appreciate it if you choose a different font and color for the header).
+
+### Running Locally
+
+Be sure you have all of the gems required by running
+
+ sudo rake gems:install
+
+To start the server, run
+
+ rake server
+
+This will start the server at <http://localhost:9393/>.
+
+You will probably want to [Compass][] in watch mode as well. Run this command to have [Compass][] watch the sass directory.
+
+ rake compass:watch
+
+[Sinatra]: http://www.sinatrarb.com/
+[Heroku]: http://heroku.com/
+[Compass]: http://compass-style.org/
View
30 Rakefile
@@ -0,0 +1,30 @@
+desc "Install gems that this app depends on. May need to be run with sudo."
+namespace :gems do
+
+ desc "Install necessary gems"
+ task :install do
+ dependencies = [
+ "sinatra --version >= 0.9.4",
+ "haml --version >= 2.2.9",
+ "chriseppstein-compass --version 0.8.7 --source http://gems.github.com",
+ "shotgun --version >=0.4"
+ ]
+ dependencies.each do |dependency|
+ command = "gem install #{dependency} -q"
+ puts command
+ system command
+ end
+ end
+end
+
+namespace :compass do
+ desc "Start Compass watching the SASS directory"
+ task :watch do
+ system "compass -w -c config/compass.rb"
+ end
+end
+
+desc "Start local server"
+task :server do
+ system "shotgun app.rb"
+end

0 comments on commit 3a38157

Please sign in to comment.