Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed typo, added gemify stuff

  • Loading branch information...
commit 0ae6ce43d2c3699478aed2da41fb872a2c8508f3 1 parent e78c343
@nakajima authored
Showing with 12 additions and 3 deletions.
  1. +6 −0 .gemified
  2. +4 −1 .manifest
  3. +2 −2 lib/capinatra.rb
View
6 .gemified
@@ -0,0 +1,6 @@
+---
+:summary: Quickly deploy Sinatra apps on Passenger
+:dependencies:
+- capistrano
+:name: capinatra
+:version: 0.0.1
View
5 .manifest
@@ -1,2 +1,5 @@
bin/capinatra
-lib/capinatra.rb
+lib/capinatra.rb
+templates/Capfile
+templates/config.ru.erb
+templates/vhost.conf.erb
View
4 lib/capinatra.rb
@@ -7,7 +7,7 @@
desc "Sets up apache vhost"
task :vhost do
logger.info 'compiling vhost template'
- template = File.read(File.dirname(__FILE__), '..', 'templates', 'vhost.conf.erb')
+ template = File.read(File.join(File.dirname(__FILE__), '..', 'templates', 'vhost.conf.erb'))
logger.info 'uploading vhost file'
put ERB.new(template).result(binding), "#{application}.conf"
@@ -22,7 +22,7 @@
desc "Adds config.ru file"
task :config do
logger.info 'compiling config.ru template'
- template = File.read(File.dirname(__FILE__), '..', 'templates', 'config.ru.erb')
+ template = File.read(File.join(File.dirname(__FILE__), '..', 'templates', 'config.ru.erb'))
logger.info 'uploading config.ru file'
put ERB.new(template).result(binding), "config.ru"
Please sign in to comment.
Something went wrong with that request. Please try again.