Skip to content

Instantly share code, notes, and snippets.

@adamstac
Created July 12, 2011 21:42
Show Gist options
  • Save adamstac/1079047 to your computer and use it in GitHub Desktop.
Save adamstac/1079047 to your computer and use it in GitHub Desktop.
serve-1.5.0-term
adamstacoviak:Sandbox/ $ gem install serve [16:40:00]
Fetching: rack-test-0.6.0.gem (100%)
Fetching: tilt-1.3.2.gem (100%)
Fetching: serve-1.5.0.gem (100%)
Successfully installed rack-test-0.6.0
Successfully installed tilt-1.3.2
Successfully installed serve-1.5.0
3 gems installed
adamstacoviak:Sandbox/ $ serve create test-project [16:40:12]
create test-project
create test-project/public
create test-project/tmp
create test-project/views
create test-project/Gemfile
create test-project/config.ru
create test-project/.gitignore
create test-project/compass.config
create test-project/public/images
create test-project/public/javascripts
create test-project/public/stylesheets
create test-project/stylesheets
exists test-project/public
exists test-project/public/images
create test-project/public/images/serve-logo.png
exists test-project/stylesheets
create test-project/stylesheets/modules
create test-project/stylesheets/modules/_all.scss
create test-project/stylesheets/modules/_links.scss
create test-project/stylesheets/modules/_typography.scss
create test-project/stylesheets/modules/_utility.scss
create test-project/stylesheets/partials
create test-project/stylesheets/partials/_base.scss
create test-project/stylesheets/partials/_content.scss
create test-project/stylesheets/partials/_layout.scss
create test-project/stylesheets/screen.scss
exists test-project/views
create test-project/views/_layout.html.erb
create test-project/views/index.redirect
create test-project/views/layouts
create test-project/views/layouts/default.html.erb
create test-project/views/view_helpers.rb
create test-project/views/welcome.html.erb
create test-project/README.md
Woohoo! You created a new Serve project.
A couple of basic files are in place ready for you to edit.
Remember to edit the project Gemfile and run:
bundle install
To start serving your project, run:
cd "test-project"
serve
Then go to http://localhost:4000 in your web browser.
Have fun!
adamstacoviak:Sandbox/ $ cd test-project [16:40:19]
adamstacoviak:test-project/ $ bi [16:40:25]
Fetching source index for http://rubygems.org/
Installing activesupport (3.0.9)
Installing chunky_png (1.2.0)
Using fssm (0.2.7)
Installing sass (3.1.4)
Installing compass (0.11.5)
Installing i18n (0.6.0)
Installing rack (1.3.0)
Using rack-test (0.6.0)
Using tilt (1.3.2)
Installing tzinfo (0.3.29)
Using serve (1.5.0)
Using bundler (1.0.12)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
adamstacoviak:test-project/ $ serve [16:41:01]
[2011-07-12 16:41:14] INFO WEBrick 1.3.1
[2011-07-12 16:41:14] INFO ruby 1.9.2 (2011-02-18) [x86_64-darwin10.7.0]
[2011-07-12 16:41:14] INFO WEBrick::HTTPServer#start: pid=16609 port=4000
127.0.0.1 - - [12/Jul/2011 16:41:19] "GET / HTTP/1.1" 302 - 0.6892
127.0.0.1 - - [12/Jul/2011 16:41:19] "GET /welcome HTTP/1.1" 200 - 0.0038
127.0.0.1 - - [12/Jul/2011 16:41:19] "GET /stylesheets/screen.css HTTP/1.1" 200 8445 0.0035
127.0.0.1 - - [12/Jul/2011 16:41:19] "GET /images/serve-logo.png HTTP/1.1" 200 36151 0.0009
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment