Spree Deployment Service Beta

244 views
Skip to first unread message

Brian Quinn

unread,
Jan 24, 2012, 6:26:18 AM1/24/12
to spree...@googlegroups.com
Hi All,
Our new Spree deployment service is live and ready for some beta testing. This new free service will automatically configure any Ubuntu server with a complete Rails & Spree hosting stack including Nginx, Unicorn, Ruby, MySQL, Git and much more. 

All you have to do is fill in a form with some general details about your desired environment like Ruby + Spree Versions, operating system, Rails environment and give the names (FQDN) + ip addresses of the server(s) you want to configure and it will produce a one line configuration script that you can execute on each server to handle the installation for you.

The service can be used to configure a single or multiple servers (i.e. one database + one or more application servers) to host a single application and you can also configure multiple deployments for each store (for production, staging, qa, etc). 

You can also choose to deploy a basic demo Spree application to your server automatically, or have it generate a Capistrano script for you to use to deploy your own Spree application. 

Anyone who has already requested Beta Access for other services will automatically get access to this beta, anyone else who would like access please ping me directly off list with your SpreeCommerce.com account's email address and I will give you access.

To use the new feature, log in to your account, browse to "My Stores" and add a new or click on an existing store's name link.

You should see a new link called "Add Deployment Service (Beta)", following that will present you with a form to gather some details for your new deployment.

This is a beta so please post here (or track me down on IRC) if you experience any issues. More documentation and improvements will be released over the coming days.


Enjoy,


Brian Quinn

-------------------------------------------
Spree Commerce Inc.
2 Wisconsin Circle, Suite 700
Chevy Chase, MD 20815
-------------------------------------------

Jones Lee

unread,
Jan 24, 2012, 6:50:24 PM1/24/12
to spree...@googlegroups.com
Hi Brian

Can you please grant me access to this beta service? My account is same as my email, jones...@gmail.com.

Many thanks

Trung

--
You received this message because you are subscribed to the Google Groups "Spree" group.
To post to this group, send email to spree...@googlegroups.com.
To unsubscribe from this group, send email to spree-user+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.

Kiran Narasareddy

unread,
Jan 24, 2012, 11:44:07 PM1/24/12
to spree...@googlegroups.com

Hi Brian,
It would be great if I could get my hands on it too. My email is kiran.Na...@gmail.com

Kyle West

unread,
Jan 25, 2012, 1:09:20 PM1/25/12
to spree...@googlegroups.com
This sounds awesome. I have no current need for it, but it's a great thing to add.

Kyle

Tom

unread,
Jan 26, 2012, 2:26:23 AM1/26/12
to Spree
Hi,
I would like to try it as well. My spree account email is:
thoma...@gmail.com
Thanks.

- Thomas

On Jan 24, 8:44 pm, Kiran Narasareddy <kiran.narasare...@gmail.com>
wrote:
> Hi Brian,
> It would be great if I could get my hands on it too. My email is
> kiran.Narasare...@gmail.com
> On 25-Jan-2012 5:20 AM, "Jones Lee" <jonesle...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Hi Brian
>
> > Can you please grant me access to this beta service? My account is same as
> > my email, jonesle...@gmail.com.

Vassil Kalkov

unread,
Jan 28, 2012, 6:13:43 PM1/28/12
to Spree
Hi , I would like to try it too.

vassil...@gmail.com

On Jan 26, 9:26 am, Tom <thomasjo...@gmail.com> wrote:
> Hi,
>    I would like to try it as well. My spree account email is:
> thomasjo...@gmail.com

Chris

unread,
Jan 28, 2012, 11:18:35 PM1/28/12
to spree...@googlegroups.com
Has anyone received a response from Brian on this? I'm just wondering
if my request went to spam, or if everyone else is still waiting too.
I sent a direct request as requested by Brian which is why it isn't
in this thread. :-)
Thanks,
Chris

Kiran Narasareddy

unread,
Jan 28, 2012, 11:25:36 PM1/28/12
to spree...@googlegroups.com

Yep I did request him and he granted it immediately.

Sean Schofield

unread,
Jan 29, 2012, 1:30:08 PM1/29/12
to spree...@googlegroups.com
Did you apply for beta access through your Spree account? Usually
that creates a ticket in our support system that we can act upon.

Sean

Chris

unread,
Jan 29, 2012, 7:54:33 PM1/29/12
to spree...@googlegroups.com
Sean,
Thanks. It turns out that I was just looking in the wrong place.

For anyone else who makes the same mistake that I did: In your list
of stores you need to click on the link for the store itself NOT the
edit link. I kept clicking on the 'Edit' link for the store, or the
'New Store' link and neither one of those show anything about the beta
(at least not without filling out the new store form and moving to the
next step).

Thanks again! I've got it working now and I'm anxious to test it out.
Chris

Brian Quinn

unread,
Feb 2, 2012, 5:40:03 AM2/2/12
to spree...@googlegroups.com
Hi All,
We pushed an updated version of the Deployment Service yesterday and there was an issue creating new servers with it. I've just corrected the problem now, thanks to devilcoders for reporting it.

The latest Deployment Service release includes two additional server roles:

- Load Balancer which configures Nginx to load balance requests to all application servers. The load balancer must also be an application server and it will act as a primary node in your configuration (so DNS should resolve to it). It will handle all requests for static assets.

- Utility Server is essentially the same as an application server except it will not boot unicorn, and you can use it for whatever purposes you need (delayed jobs, etc).

We've a stack of deployment service related guides going live soon, and we should be opening the service for everyone's use shortly. In the meantime if anyone would like access please ping me off list!

Thanks,

--
Brian Quinn

Co-Founder, CTO
Spree Commerce, Inc.

On Wednesday 25 January 2012 at 18:09, Kyle West wrote:

This sounds awesome. I have no current need for it, but it's a great thing to add.

Kyle

--
You received this message because you are subscribed to the Google Groups "Spree" group.
To view this discussion on the web visit https://groups.google.com/d/msg/spree-user/-/fKOgLWRlqT4J.

Mehatem Ashenaffi

unread,
Feb 2, 2012, 10:53:20 AM2/2/12
to spree...@googlegroups.com
Brian, will the new analytic and theme be available on the demo site anytime soon 
thanks

Brian Quinn

unread,
Feb 2, 2012, 11:56:22 AM2/2/12
to spree...@googlegroups.com
The analytics won't be available on the demo, but we will be updating the new theme will be available once Spree 1.0 is released.


--
Brian Quinn

Co-Founder, CTO
Spree Commerce, Inc.

Sean Schofield

unread,
Feb 3, 2012, 2:48:39 PM2/3/12
to spree...@googlegroups.com
The analytics are actually already deployed on the demo but you just
can't log into our backend to see them (for obvious reasons.) We are
updating the source code for the demo so it will soon be configured
with analytics. Plus the personal sandbox stores will start shipping
with the analytics demo soon as well.

Sean

Mehatem Ashenaffi

unread,
Feb 3, 2012, 2:57:37 PM2/3/12
to spree...@googlegroups.com
great.. i cant wait. i would also love to see new theme. Do you have it on display anywhere 

Brian Quinn

unread,
Feb 9, 2012, 12:32:42 PM2/9/12
to spree...@googlegroups.com
Hi All,
As if 1.0 wasn't enough good news, the Deployment Service is now available to everyone, no Beta Access required.

See the "Server Config & Deployment" here [1] for more details!




--
Brian Quinn

Co-Founder, CTO
Spree Commerce, Inc.

S Ahmed

unread,
Feb 9, 2012, 2:02:18 PM2/9/12
to spree...@googlegroups.com
Is the actual puppet scripts going to be released, or this is a hosted type solution?

Sean Schofield

unread,
Feb 9, 2012, 4:12:19 PM2/9/12
to spree...@googlegroups.com
Puppet scripts are hosted but you just need to register your site and
you can use it. Registration is private and helps us keep a better
count on the aggregate number of Spree stores. Service is free and
you can host wherever you want (although we recommend Rackspace.)

Sean

Carlos Eduardo Alarcon

unread,
Feb 9, 2012, 4:20:41 PM2/9/12
to spree...@googlegroups.com
Any reason in particular why you recommend Rackspace? I personally use Amazon EC2 & S3 and have no complains

Additionally I use Passenger, and I saw you preffer unicorn. Have you ever made a comparison or is justo a matter of taste?

Carlos
Carlos E. Alarcón
Continuum Developer

--------------------------------------
"Simplicity is the ultimate form of sophistication."
Leonardo da Vinci

Brian Quinn

unread,
Feb 10, 2012, 3:41:11 AM2/10/12
to spree...@googlegroups.com
Hi Carlos,
We recommend Rackspace as we host all our stuff there, and the deployment service is tested and verified working on their Cloud Servers. Plus their support is pretty awesome! That said, several of the beta users have used other providers and were able to use the service with some minor tweaks (biggest issue was missing dependencies for the initial install script).

I spent several weeks testing Spree using a combination of app and web servers including Apache, Nginx, Passenger, Thin, Unicorn  and finally rested on Nginx + Unicorn as the best choice for hosting a Spree application. I testing using Siege and BrowserMob and the Unicorn + Nginx configuration won on two criteria 1) I was able to get more app workers running on modest hardware, 2) The app was able to handle a higher RPM.

We do plan to open source the Puppet configuration at some point, and we already have offers to help us add support for other operating systems (RHEL).



--
Brian Quinn

Co-Founder, CTO
Spree Commerce, Inc.

DevilCoders

unread,
Feb 10, 2012, 3:43:22 AM2/10/12
to spree...@googlegroups.com
It would be awesome to have Archlinux support for scripts too!

10 февр. 2012, в 10:41, Brian Quinn написал(а):

Steve Root

unread,
Feb 11, 2012, 12:58:25 PM2/11/12
to spree...@googlegroups.com
Hi Brian,

I've tried a couple of run throughs of the deployment service beta. A couple of things that may or may not be of interest to you:

Using ubuntu 10.04 LTS, fresh install
1) After running the script " bash < <(curl -s http://puppet.spreecommerce.com:5000/install?fqdn... " etc, on three attempts my ubuntu user lost sudo ability.  I have a vague memory of seeing that before, so it might not be a spree/deployment service issue (so I don't think anyone needs to spend time on it)

2) Self inflicted pain:  I let it use REE when I developed with 1.9.2.  Got lots of errors, tried to fix them, it didn't work.

3) On my last run through (if you look at my account, it's for 'staging3'), despite having chosen 1.9.2, on a fresh install of ubuntu, my 'cap deploy:cold' failed with: 
failed: "sh -c 'cd /data/spree/releases/20120211174007 && bundle install --gemfile /data/spree/releases/20120211174007/Gemfile --path /data/spree/shared/bundle --deployment --quiet --without development test'" on 10.18.6.228
On the server, as my normal user, "ruby -v" returns ruby 1.8.7 (2010-01-10 patchlevel 249) [i486-linux]
and I wonder if that's related to the failure.  I've saved the screen output if that's of use.

Regards
Steve

Brian Quinn

unread,
Feb 12, 2012, 11:19:46 AM2/12/12
to spree...@googlegroups.com
Hi Steve,
Thanks for the feedback.

1) I've only tested the installer with a root user, not a normal user with sudo so I'm not sure how that would work to be honest. The puppet configuration completely replaces the /etc/sudoers file, so that would explain your user losing sudo privileges, I'm pretty sure we can change that part of the puppet config to manage the sudoers in a more friendly fashion, I just went with the easiest option first. :)

2) Changing ruby version should work, but it might need some debugging. It's generally safer to just rebuild the entire box than try to change the configuration.

3) Please send me the capistrano output off list and I'll see if I can spot the issue. The wrong ruby version reporting, is a known issue. As puppet depends on ruby it installs the system version, when the Spree installer runs it's installs a second version in /usr/local and updates that paths so that version of ruby is found. You need to restart your bash session after the initial installer run has completed before you'll see the new ruby version.

HTH,

--
Brian Quinn

Co-Founder, CTO
Spree Commerce, Inc.

--
You received this message because you are subscribed to the Google Groups "Spree" group.
To view this discussion on the web visit https://groups.google.com/d/msg/spree-user/-/rn-u5eNEEM4J.

Steve Root

unread,
Feb 12, 2012, 12:14:23 PM2/12/12
to spree...@googlegroups.com
Thanks Brian,

1) Sounds like a good reason to me :-)  
My suggestion to fix, add something like this to the instructions:

Step X (having a freshly installed server)

login with your user, at the prompt:
sudo passwd root
>>enter your password
>> now enter the password for your new root user

Another thought... I'm guessing it's *not* a good idea to create your server user with the name 'spree' ?  Just curious.

2) My solution for anyone else reading this, was to updated my dev environment to 1.9.3p0  .The deploy scripts appear to have worked fine, although nginx hasn't restarted since I copied in the SSL certs (I'm not sure whether that's the reboot or refreshing the DeploymentService, I'll post again if I work out it might not be me) 

3) Will email shortly

Thanks,
Steve

Stephane

unread,
Feb 17, 2012, 6:32:21 AM2/17/12
to Spree
Brian,

I gave a shot to the deployment service and it is working pretty well
so far on rackspace.
I had an issue with my products images which are overwritten at each
deploy.

I figured out by adding public/spree to .gitgnore and change in
caspitrano recipe:

namespace :deploy do
desc "Symlink shared configs and folders on each release."
task :symlink_shared do
run "ln -nfs #{shared_path}/config/database.yml #{release_path}/
config/database.yml"
run "ln -nfs #{shared_path}/config/Procfile #{release_path}/
Procfile"
run "ln -nfs #{shared_path}/spree #{release_path}/public/spree"
#your spree assets like products images
end
end

Deployed a spree app in couple of minutes, thanks brian !

Stephane.

Brian Quinn

unread,
Feb 17, 2012, 6:16:36 PM2/17/12
to spree...@googlegroups.com
Thanks for pointing that out, I'll see if we can incorporate that.

> --
> You received this message because you are subscribed to the Google Groups "Spree" group.

Chris

unread,
Mar 6, 2012, 6:59:46 AM3/6/12
to spree...@googlegroups.com
Brian,
I just got hit by the /etc/sudoers file being overwritten too.
Using an Ubuntu AMI on EC2 you don't login as root, but as the
'ubuntu' user.

I was testing where the app server and the database are running on
the same system and the install fails with the following message:
http://pastie.org/3532899

And now since the sudoers file has been overwritten I no longer have
the necessary access to fix anything.

Obviously it isn't a huge issue to re-deploy, but it's definitely
something that you should seriously consider fixing. At least for
those of us that prefer Debian based systems over RedHat based. :-)

Thanks,
Chris

Brian Quinn

unread,
Mar 6, 2012, 11:36:34 AM3/6/12
to spree...@googlegroups.com
Hi Chris,
I actually encountered this issue with Genís at SpreeConf, the current Puppet script completely replaces the sudoers file which works fine on the default builds on Rackspace but appears to cause issues with a number of other default builds.

The plan is to make that aspect of the puppet configuration more respectful and just inject the lines we require, but I've not got a chance to do this yet. It will get resolved as soon as I get a chance.


--
Brian Quinn

Co-Founder, CTO
Spree Commerce, Inc.

Peter Leonhardt

unread,
Sep 5, 2012, 1:30:49 AM9/5/12
to spree...@googlegroups.com
Hey. I love the idea! I've been running Spree for over a year now and love it. I'm excited to upgrade from 0.6x to 1.1! 

Unfortunately I can't get the deployment service to work! How long do I need to wait for the configuration server? I've been sitting with the message:
Waiting for update from configuration server, 'Refresh' the page for updates.
For about an hour now! Hopefully there's just a hiccup with the configuration server, as I can't wait to try this out.

Thanks for all the hard work!

Peter



On Tuesday, January 24, 2012 6:26:18 AM UTC-5, Brian Quinn wrote:
Hi All,
Our new Spree deployment service is live and ready for some beta testing. This new free service will automatically configure any Ubuntu server with a complete Rails & Spree hosting stack including Nginx, Unicorn, Ruby, MySQL, Git and much more. 

All you have to do is fill in a form with some general details about your desired environment like Ruby + Spree Versions, operating system, Rails environment and give the names (FQDN) + ip addresses of the server(s) you want to configure and it will produce a one line configuration script that you can execute on each server to handle the installation for you.

The service can be used to configure a single or multiple servers (i.e. one database + one or more application servers) to host a single application and you can also configure multiple deployments for each store (for production, staging, qa, etc). 

You can also choose to deploy a basic demo Spree application to your server automatically, or have it generate a Capistrano script for you to use to deploy your own Spree application. 

Anyone who has already requested Beta Access for other services will automatically get access to this beta, anyone else who would like access please ping me directly off list with your SpreeCommerce.com account's email address and I will give you access.

Brian Quinn

unread,
Sep 5, 2012, 7:15:59 AM9/5/12
to spree...@googlegroups.com
Hi Peter,
I just tested it and of course it worked for me. If you email me back directly with the URL to your deploy page I'll review and see whats going on.

Thanks,


--
Brian Quinn

Co-Founder, CTO
Spree Commerce, Inc.

--
You received this message because you are subscribed to the Google Groups "Spree" group.
To view this discussion on the web visit https://groups.google.com/d/msg/spree-user/-/SYfPejMqXPAJ.

Peter Leonhardt

unread,
Sep 5, 2012, 8:17:15 AM9/5/12
to spree...@googlegroups.com
Thanks Brian. It seems to be working now, not sure what the issue was before. 

Stephane

unread,
Dec 4, 2012, 10:51:24 AM12/4/12
to spree...@googlegroups.com
Hey Brian,

I have the exact same issue on my deploy page : spree 1.2.x / ubuntu 12.04 / 1.9.3-p327 / custom spree app

Any idea ?

Thx.

Brian Quinn

unread,
Dec 4, 2012, 12:47:13 PM12/4/12
to spree...@googlegroups.com
Stephane,
Email me a link to your deploy page off-list and I'll review it.


--
Brian Quinn

Co-Founder, CTO
Spree Commerce, Inc.

To view this discussion on the web visit https://groups.google.com/d/msg/spree-user/-/FIIzDVJ2lXEJ.
Reply all
Reply to author
Forward
0 new messages