hmans / pants

PANTS: Distributed Social Blogging.

Home Page:http://pants.social/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Documentation clarifications

winks opened this issue · comments

I just installed #pants on Ubuntu 14.04 according to the docs, here are my findings:

  • missing: gem install bundler && source ~/.bash_profile before bundle
  • missing echo "ENV['SECRET_TOKEN']" > config/initializers/secret_token.rb before rails console would work

When I visit hostname.example.org:3000 everything works as it should, but of course assets are broken. (My user was created with domain: 'hostname.example.org')

When I add default nginx settings with proxy_pass http://localhost:3000;, I get a redirect loop (this is pretty uncommon).

result: 20x

I, [2014-08-02T10:39:00.550306 #13866]  INFO -- : Started GET "/" for 127.0.0.1 at 2014-08-02 10:39:00 +0000
I, [2014-08-02T10:39:00.552314 #13866]  INFO -- : Processing by PostsController#index as HTML
I, [2014-08-02T10:39:00.554956 #13866]  INFO -- : Redirected to http://hostname.example.org
I, [2014-08-02T10:39:00.555156 #13866]  INFO -- : Filter chain halted as #<Proc:0x007f5629aa25b8@/home/pants/pants/app/controllers/application_controller.rb:33> rendered or redirected
I, [2014-08-02T10:39:00.555365 #13866]  INFO -- : Completed 302 Found in 3ms (ActiveRecord: 0.7ms)

Oh, and something regarding the needed specs for the host:
Fresh VM with Ubuntu 14.04, only packages installed and running are the ones from the howto (plus nginx):

root@pants01:~# free -m
             total       used       free     shared    buffers     cached
Mem:           484        418         66         14         19        182
-/+ buffers/cache:        216        268
Swap:            0          0          0

So I think 512 MB RAM as a minimum is mandatory.

What documentation? :)

Noted, though. As discussed on IRC.