Skip to content

Latest commit

 

History

History
175 lines (142 loc) · 3.35 KB

install-rake-and-bundler.adoc

File metadata and controls

175 lines (142 loc) · 3.35 KB

Install Rake and Bundler

Previous: Setup a new website project with Awestruct

Tutorial 3

This tutorial…​

Generate and preview website

$ rake
Note
The no-argument rake command is a alias for rake preview.
Console output
Running command: bundle exec awestruct -d
Using profile: development
Generating site: http://localhost:4242
***************************************************************************
Starting preview server at http://localhost:4242 (Press Ctrl-C to shutdown)
***************************************************************************
[Listen warning]:
The blocking parameter of Listen::Listener#start is deprecated.
Please use Listen::Adapter#start for a non-blocking listener and Listen::Listener#start! for a blocking one.
[2013-12-03 17:20:43] INFO  WEBrick 1.3.1
[2013-12-03 17:20:43] INFO  ruby 2.0.0 (2013-11-22) [x86_64-linux]
[2013-12-03 17:20:43] INFO  WEBrick::HTTPServer#start: pid=19591 port=4242

Visit http://localhost:4242 in your web browser

!

{caption-off}
Figure 1. Desktop view

!

new awestruct foundation site phone
Figure 2. Mobile view

Halt the preview server

Press key combo

Ctrl+C

Console output
...
[2013-01-01 00:00:00] INFO  going to shutdown ...
[2013-01-01 00:00:00] INFO  WEBrick::HTTPServer#start done.

Structure of generated site

_site/
|-- humans.txt
|-- index.html
|-- javascripts/
|   |-- foundation/
|   |   |-- foundation.alerts.js
|   |   |-- ...
|   |   |-- foundation.js
|   |   |-- ...
|   |   `-- foundation.topbar.js
|   `-- vendor/
|       |-- custom.modernizr.js
|       |-- jquery.js
|       `-- zepto.js
|-- robots.txt
`-- stylesheets/
    `-- app.css

Next: Setup a git repository for your website project