Skip to content

Instantly share code, notes, and snippets.

@errakeshpd
Created January 20, 2015 05:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save errakeshpd/b884d43b32c8d05c49ef to your computer and use it in GitHub Desktop.
Save errakeshpd/b884d43b32c8d05c49ef to your computer and use it in GitHub Desktop.
automatically setup the production instance for the customer if he press a button of a rails application
we have a "marketinginstance" & "our application ABC"
if any one purchase the application ABC from the marketing instance. automatically want to setup the rails application for them.
A - > purchase application
he choose a domain "railz"
then the task is that
1.cp ABC ABC_railz;
2.add a host entry in apache (sites_available)
url : railz.ABC.com
Document dir : /var/www/ABC_railz
then apache restart
these tasks want to perform after the "marketing instance" button click . (set up my instance) <- Button
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment