couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Ramage <ryan.ram...@gmail.com>
Subject Re: Tool to upload an entire website to CouchDB
Date Fri, 08 Nov 2013 21:26:22 GMT
For a grunt task you may consider:

https://github.com/jo/grunt-couch




On Fri, Nov 8, 2013 at 1:50 PM, Benoit Chesneau <bchesneau@gmail.com> wrote:

> On Fri, Nov 8, 2013 at 9:44 PM, Daniel Nephin <dnephin@gmail.com> wrote:
>
> > For my use case Grunt integration is essential.  I want to be able to
> write
> > my design document in coffeescript, compile it, run tests against it, and
> > upload it all automatically (when a file is saved). Grunt already has
> > support for compiling coffeescript and running javascript tests and is
> > designed to do this very thing, so it only makes sense to me that grunt
> > would the right tool for pushing couchapps as well.
> >
> > I've been using https://github.com/elfsternberg/grunt-couchapp. I
> haven't
> > had any problems, but it is missing 1 important thing, macros.  If I
> > understand correctly the original couchapp supported `!code` macros.
>  Since
> > you can't really call other modules in your reduce function (and
> versions <
> > 1.2 don't even support lib modules) being able to inline shared functions
> > is an important feature.
> >
> > I've also looked into:
> >
> >    - http://kan.so/ (as far as I can tell, there is no grunt task, and I
> >    don't see any support for macros
> >    - https://github.com/jo/grunt-couch (looks like it has a lot more
> >    complete grunt integration, but I still don't see anything about
> macros)
> >
> >
> > Does anyone know if I've missed something? Is there actually a grunt task
> > for kanso?  Do these actually support macros? Is there another tool with
> > both?
> >
> >
> > Thanks!
> >
> >
> FYI erica is supporting macros as well. It should be easy to create a grunt
> task from it.
>
> - benoit
>
> >
> > On Fri, Nov 8, 2013 at 11:09 AM, Florian Westreicher Bakk.techn. <
> > stuff@meredrica.org> wrote:
> >
> > > I think OP wants a tool to push crawled pages to couch, not couch apps.
> > >
> > > If I'm correct it should be doable with a simple curl loop.
> > >
> > > Simon Metson <simon@cloudant.com> wrote:
> > > >Yeah, I’ve done this. Use the ST build thing to call grunt, and the
> > > >grunt couchapp task to push the code.
> > > >
> > > >
> > > >On Friday, 8 November 2013 at 14:25, Mark Deibert wrote:
> > > >
> > > >> I'm sure a Sublime Text build script could kick off a grunt task.
> > > >Haven't
> > > >> tried that but don't see why not.
> > > >>
> > > >>
> > > >> On Fri, Nov 8, 2013 at 8:03 AM, matt j. sorenson
> > > ><matt@sorensonbros.net (mailto:matt@sorensonbros.net)>wrote:
> > > >>
> > > >> > ooh it never dawned on me to wire one of these up as a ST build
> > > >system,
> > > >> > nice tip.
> > > >> >
> > > >> > there's probably a way to make it a grunt task, too? (then invoke
> > > >grunt as
> > > >> > ST build?)
> > > >> >
> > > >> >
> > > >> > On Fri, Nov 8, 2013 at 6:57 AM, Mark Deibert
> > > ><mark.deibert@gmail.com (mailto:mark.deibert@gmail.com)>
> > > >> > wrote:
> > > >> >
> > > >> > > Build the app with Sublime Text. Create a "Build" script
in ST
> to
> > > >use
> > > >> > > CouchApp to push the app to CouchDB. Works like a charm.
> > > >> > >
> > > >> > >
> > > >> > > On Fri, Nov 8, 2013 at 5:49 AM, Benoit Chesneau
> > > ><bchesneau@gmail.com (mailto:bchesneau@gmail.com)>
> > > >> > > wrote:
> > > >> > >
> > > >> > > > erica + the webapp support should work for you,
> > > >> > > >
> > > >> > > >
> > > >> > > > Add a app.webapp in your folder and do erica push from
it , it
> > > >should
> > > >> > > just
> > > >> > > > work.
> > > >> > > >
> > > >> > > > A .webapp looks like:
> > > >> > > >
> > > >> > > > ```
> > > >> > > >
> > > >> > > > {
> > > >> > > >
> > > >> > > > "name": "My App",
> > > >> > > >
> > > >> > > > "version" : "0.0.4",
> > > >> > > >
> > > >> > > > "description": "My elevator pitch goes here",
> > > >> > > >
> > > >> > > > "long_description" : "Something really important",
> > > >> > > >
> > > >> > > > "launch_path": "/",
> > > >> > > >
> > > >> > > > "url": "https://github.com/garden20/baseline-garden-app",
> > > >> > > >
> > > >> > > > "categories": ["learning"],
> > > >> > > >
> > > >> > > > "flattr_user_id" : "eckoit",
> > > >> > > >
> > > >> > > > "icons": {
> > > >> > > >
> > > >> > > > "16": "img/promo/icon_16.png",
> > > >> > > >
> > > >> > > > "48": "img/promo/icon_48.png",
> > > >> > > >
> > > >> > > > "96": "img/promo/icon_96.png",
> > > >> > > >
> > > >> > > > "128": "img/promo/icon_128.png"
> > > >> > > >
> > > >> > > > },
> > > >> > > >
> > > >> > > > "promo_images": {
> > > >> > > >
> > > >> > > > "small": "img/promo/promo_small.png"
> > > >> > > >
> > > >> > > > },
> > > >> > > >
> > > >> > > > "screenshots": [
> > > >> > > >
> > > >> > > > "img/promo/screenshot1.png"
> > > >> > > >
> > > >> > > > ],
> > > >> > > >
> > > >> > > > "developer": {
> > > >> > > >
> > > >> > > > "name": "Ryan Ramage",
> > > >> > > >
> > > >> > > > "url": "http://your-homepage-here.org"
> > > >> > > >
> > > >> > > > },
> > > >> > > >
> > > >> > > > "default_locale": "en"
> > > >> > > >
> > > >> > > > }
> > > >> > > >
> > > >> > > > ```
> > > >> > > >
> > > >> > > > See http://www.w3.org/2012/sysapps/manifest/ for a
look on
> the
> > > >format.
> > > >> > > >
> > > >> > > > Hopefully i will make it easier soon.
> > > >> > > >
> > > >> > > > - benoit
> > > >> > > >
> > > >> > > >
> > > >> > > > On Fri, Nov 8, 2013 at 10:51 AM, Hank Knight
> > > ><hknight555@gmail.com (mailto:hknight555@gmail.com)>
> > > >> > > wrote:
> > > >> > > >
> > > >> > > > > From a Linux command line, I would like to be
able to be
> able
> > > >to
> > > >> > > > > automatically upload an entire website including
all pages,
> > > >images,
> > > >> > > > > CSS files and scripts from a given directory into
CouchDB.
> > > >> > > > >
> > > >> > > > > Before I go to the trouble of developing such
a tool I
> wanted
> > > >to see
> > > >> > > > > if such a tool already exists.
> > > >> > > > >
> > > >> > > > > If not, are there any considerations I should
be aware of
> > > >when
> > > >> > > > > developing this tool? I would probably either
use shell
> > > >scripting or
> > > >> > > > > Perl.
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> > > --
> > > Sent from Kaiten Mail. Please excuse my brevity.
> > >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message