Skip to content
Browse files

updated readme

  • Loading branch information...
1 parent 0ee4733 commit 2d38f16bd018b071a7c3921308aebce7ca060c8c nullserver@gmail.com committed May 10, 2012
Showing with 31 additions and 29 deletions.
  1. +1 −2 .rvmrc
  2. +1 −1 Gemfile
  3. +1 −0 Gemfile.lock
  4. +28 −26 README.markdown
View
3 .rvmrc
@@ -1,2 +1 @@
-rvm use 1.9.2-p290@snehta --create
-#
+rvm use 1.9.2-p290@static-heroku-sample --create
View
2 Gemfile
@@ -1,5 +1,5 @@
source 'http://rubygems.org'
-
+gem 'rack'
gem 'sinatra'
gem 'sinatra-contrib'
View
1 Gemfile.lock
@@ -50,6 +50,7 @@ DEPENDENCIES
ap
heroku
hirb
+ rack
sinatra
sinatra-contrib
wirble
View
54 README.markdown
@@ -1,47 +1,49 @@
# Here is a sample/template sinatra application ready for deployment to [Heroku](http://heroku.com).
+## Intial computer setupSetup
+* Create a[Heroku](http://heroku.com/signup) account.
+* If you do not have an SSH key you'll need to [generateone](http://heroku.com/docs/index.html#_setting_up_ssh_public_keys) and [tell Heroku about it](http://heroku.com/docs/index.html#_manage_keys_on_heroku)
-* Create an acount in seconds at [Heroku](http://heroku.com/signup).
-* Install the gem `sudo gem install heroku`.
-* If you do not have an SSH key
-you'll need to [generate
-one](http://heroku.com/docs/index.html#_setting_up_ssh_public_keys)
-and [tell Heroku about
-it](http://heroku.com/docs/index.html#_manage_keys_on_heroku)
-* Clone this repo `https://github.com/david-harkness/static-heroku-sample [appname]`
-* Clone this repo `git clone git://github.com/sinatra/heroku-sinatra-app [appname]`
-* `cd /path/to/project`
-* `heroku create [optional-app-name]` (You can rename your app with `heroku rename`)
-* `git push heroku master`
-
-**Setup**
-* Install ruby
- * http://www.ruby-lang.org/en/ (1.9.2 or higher)
-* Install git
- * http://git-scm.com/
+* [Install ruby](http://www.ruby-lang.org/en/) (1.9.2 or higher)
+* [Install ruby gems](http://rubygems.org/)
+* [Install git] (http://git-scm.com/)
* Install bundler
+
$ gem install bundler --pre
-**Development**
- $ cd /path/to/project
+## setup new application
+ $ git clone git@github.com:david-harkness/static-heroku-sample.git [app-name]
+ $ cd app-name
+ $ heroku create [optional-app-name] # (You can rename your app with `heroku rename`)
+ $ git push heroku master # Deploying to Heroku
+
+## Run Locally
+ $ cd /path/to/app
$ bundle install
$ rackup
* navigate to http://localhost:9292/
-**Deployment to Heroku**
- $ git push heroku master
+## Custom Domains*
-**Custom Domains**
-* https://devcenter.heroku.com/articles/custom-domains
$ heroku addons:add custom_domains
$ heroku config:add CANONICAL_URL=www.example.com
$ heroku domains:add www.example.com
-**Logs**
+**
+**Set DNS-A record Record for root domain to**
+
+ 75.101.163.44
+ 75.101.145.87
+ 174.129.212.2
+* set www CNAME to myapp.heroku.com
+[more info](https://devcenter.heroku.com/articles/custom-domains)
+
+## View production logs
+
$ heroku logs --tail
-**NOTES**
+## Notes
This is a modified version of
* https://github.com/sinatra/heroku-sinatra-app

0 comments on commit 2d38f16

Please sign in to comment.
Something went wrong with that request. Please try again.