Need help with local deployment

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Need help with local deployment

vdanilchenko@vistaprint.com

Hi all,

 

I am trying to set up my project to deploy local to a directory. The Awestruct deployment doc describes how to do it using rsync over SSH, and I got it to work that way (had to install ‘git’ gem and add it to Gemfile, then run ’rake update’), but it’s kinda clunky and requires additional SSH setup to work in batch mode (and ultimately what I will need is automated batch deployment).

 

Is there any way to make Awestruct deploy to a local directory? Here is what my current deployment profiles look like:

 

profiles:

  development:

  staging:

    base_url: http://vdanilchenko-docs.vistaprint.net

    deploy:

      host: localhost

      path: /var/www/html/

  production:

    base_url: http://vdanilchenko-docs.vistaprint.net

    deploy:

      host: localhost

      path: /var/www/html/

 

If I simply remove the ‘host’ key, awestruct throws an error.

 

I can run the rsync separately, after doing ‘awestruct –g’, but I would rather do it the ‘right’ way – if there is such a ‘right’ way of course.

 

Reply | Threaded
Open this post in threaded view
|

Re: Need help with local deployment

LightGuard
Administrator
That's a use that actually hasn't come up Victor. We don't have a deployer that will do it. If you're looking to script it though, after generation, all you'd need to do is recursively copy everything in _site to your destination. 

Feel free to add a feature issue in GitHub for this though.


On Thu, Mar 27, 2014 at 10:59 AM, Victor Danilchenko <[hidden email]> wrote:

Hi all,

 

I am trying to set up my project to deploy local to a directory. The Awestruct deployment doc describes how to do it using rsync over SSH, and I got it to work that way (had to install ‘git’ gem and add it to Gemfile, then run ’rake update’), but it’s kinda clunky and requires additional SSH setup to work in batch mode (and ultimately what I will need is automated batch deployment).

 

Is there any way to make Awestruct deploy to a local directory? Here is what my current deployment profiles look like:

 

profiles:

  development:

  staging:

    base_url: http://vdanilchenko-docs.vistaprint.net

    deploy:

      host: localhost

      path: /var/www/html/

  production:

    base_url: http://vdanilchenko-docs.vistaprint.net

    deploy:

      host: localhost

      path: /var/www/html/

 

If I simply remove the ‘host’ key, awestruct throws an error.

 

I can run the rsync separately, after doing ‘awestruct –g’, but I would rather do it the ‘right’ way – if there is such a ‘right’ way of course.

 




--