peterkeen / sites

Simple wiki-based site generator.
87 stars 6 forks source link

How do I view my newly created wiki site with the viewer? #4

Closed evolve2k closed 10 years ago

evolve2k commented 10 years ago

Hi I've managed to spin up the app by setting up a few environment variables and running 'rackup' and from there have been able to create a wiki site through your interface and add a couple of pages to it.

How do I view my newly created wiki site with the viewer? I ran: $ ruby viewer.rb Sadly Sinatra no understand what's going on :(

How do I start the viewer and view my sites it in development? What am I missing?

Thanks

Richie

peterkeen commented 10 years ago

The only way (currently) to view a site is to set a CNAME in the 'cnames' wiki page and then set that in your hosts file. So for example you can put www.example.com in the 'cnames' wiki page and "127.0.0.1 www.example.com" in /etc/hosts, then visit www.example.com:4567 in your browser.

This is pretty bad. I'll make some time tomorrow to make an accessible view route.

On Dec 6, 2013, at 10:50 PM, Richie Khoo notifications@github.com wrote:

Hi I've managed to spin up the app by setting up a few environment variables and running 'rackup' and from there have been able to create a wiki site through your interface and add a couple of pages to it.

How do I view my newly created wiki site with the viewer? I ran: $ ruby viewer.rb Sadly Sinatra no understand what's going on :(

How do I start the viewer and view my sites it in development? What am I missing?

Thanks

Richie

— Reply to this email directly or view it on GitHub.

evolve2k commented 10 years ago

Ok thanks

peterkeen commented 10 years ago

@evolve2k there's now a private, authenticated view at /:sitename/view. Other new things: