make couchapp database magically
This commit is contained in:
parent
a3811320e5
commit
7b6f39f5c6
1 changed files with 1 additions and 0 deletions
|
@ -44,6 +44,7 @@ when /push/
|
||||||
puts "push dirname [appname] database"
|
puts "push dirname [appname] database"
|
||||||
exit(0)
|
exit(0)
|
||||||
end
|
end
|
||||||
|
CouchRest.database!(dbstring)
|
||||||
dbspec = CouchRest.parse(dbstring)
|
dbspec = CouchRest.parse(dbstring)
|
||||||
fm = CouchRest::FileManager.new(dbspec[:database], dbspec[:host])
|
fm = CouchRest::FileManager.new(dbspec[:database], dbspec[:host])
|
||||||
fm.push_app(dir, appname)
|
fm.push_app(dir, appname)
|
||||||
|
|
Loading…
Add table
Reference in a new issue