开发者

nestacms and webbynode rapp

I would like to deploy a nestacms blog on webbynode by using the webbynode gem as allways I do with rails. Altough Webbynode seem to support Sinatra and Rack application easily, I get a WARNING during deployment stating that the application will not run smoothly because it lacks a public folder:

WARNING: Missing public folder in your Rack app, it'll not run smoothly!

Actually the rapid application development (RAPP webbynode gem) sets the need of a public folder into the Nginx configuration:

server {
      listen 80;
      server_name super_duper_blog.webbyapp.com ;
      root /var/rapp/super_duper_blog/public/;
      passenger_enabled on;
  }

Instead this is my nestacms config.ru:

require 'rubygems'
require 'bundler/setup'

Bundler.require(:default)

require 'nesta/app'

Nesta::App.root = ::File.expand_path('.', ::File.dirname(__FILE__))
run Nesta::App

It would be nice if the author and SO user Graham Ashton could jump in and help me. Anyway, how could I get around the problem?

UPDATE

After cre开发者_JS百科ating the project, with nesta new you nedd to:

  1. Create a public folder manually
  2. Add some content in it. Say for ex. humnans.txt and favicon.ico
  3. git add . and git commit -m "added public with humans and favicon"
  4. wn push

And your nestacms website will go on line at a private webbynode address (blog.webbyapp.com) Then you can use wn changedns www.example.com to make your site available for the masses


I've never used webbynode, so I'm not sure quite how its set up. Have you seen the Nginx passenger install guide? Could be useful:

http://modrails.com/documentation/Users%20guide%20Nginx.html#deploying_a_rack_app

It says you need public/ and tmp/, so I'm inclined to believe it.

Did you try making these directories yourself? Does the site actually start up? How are you deploying your site to the webbynode?

All my Sinatra apps are deployed with Vlad (see http://effectif.com/articles/deploying-sinatra-with-vlad) which takes care of creating public/ and tmp/ for you. It also touches tmp/restart.txt (see the Passenger guide I linked to above) when you deploy a new version of the site if you tell it that you're using Passenger. Capistrano also works fine (and is more extensively documented these days).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜