Deploying Builds to Your FAST Production Server

by dbaldwin on Wed, January 06, 2010 9:10 am

We previously discussed deploying new releases to your FAST staging server. More and more customers are now asking how to do their own production deployments. That’s exactly what we wanted to hear! To tell you honestly, production deployments don’t differ much other than the fact you’re dealing with live customers. Always take precaution in this scenario and keep in mind the handy cap deploy:rollback task that can immediately roll your system back to the previous version.

The first thing you can do is throw away your deployment file and use the one below:

Modified deployment file for FAST staging and production servers

Make sure you save it as deploy.rb in your config folder. Inside this file you’ll need to modify lines 2 and 3 with your appropriate SVN login credentials. Between lines 20 and 37 you’ll need to replace YOUR_PRODUCTION_SERVER_ADDRESS, YOUR_SVN_BRANCH_NAME, and YOUR_STAGING_SERVER_ADDRESS with the appropriate values. Keep in mind that YOUR_SVN_BRANCH_NAME is referenced on line 29 and 37. If you don’t know your SVN repo information then please contact our support team ((JavaScript must be enabled to view this email address)).

Now that you have your deployment file in place you can issue the following command to deploy to staging:

cap staging deploy

and the following to deploy to production:

cap production deploy

If you run into any deployment problems please be sure to search the application forum and post your question there.