Resin Cloud Deployment Reference
From Resin 3.0
(Difference between revisions)
Line 5: | Line 5: | ||
## Deploying to the Triad | ## Deploying to the Triad | ||
## license-add enabling Resin features | ## license-add enabling Resin features | ||
+ | # Deploy to a staging server | ||
+ | ## Setting up load balancer to not to deploy to staging server | ||
# Common tasks | # Common tasks | ||
## Deploying a new application deploy | ## Deploying a new application deploy | ||
Line 39: | Line 41: | ||
</pre> | </pre> | ||
</code> | </code> | ||
+ | |||
+ | |||
+ | == Deploying to a local server == | ||
+ | |||
+ | Turning on versioning: | ||
+ | |||
+ | <code> | ||
+ | <pre> | ||
+ | $ cat /etc/resin/resin.properties | grep deploy | ||
+ | |||
+ | Output: | ||
+ | deploy_versioning : true | ||
+ | </pre> | ||
+ | </code> | ||
+ | |||
+ | <code> | ||
+ | <pre> | ||
+ | |||
+ | $ sudo grep "web-app-deploy" -A 1 /etc/resin/resin.xml | ||
+ | |||
+ | Output: | ||
+ | <web-app-deploy path="webapps" versioning="${deploy_versioning}" | ||
+ | expand-preserve-fileset="WEB-INF/work/**"/> | ||
+ | |||
+ | </pre> | ||
+ | </code> | ||
+ | |||
+ | "if true, use the web-app's numeric suffix as a version" |
Revision as of 22:20, 5 December 2011
- Setting up a user and password
- Deploying to a local server
- Deploying to a remote server
- Setting up a cloud topology
- Deploying to the Triad
- license-add enabling Resin features
- Deploy to a staging server
- Setting up load balancer to not to deploy to staging server
- Common tasks
- Deploying a new application deploy
- Listing current versions of deployed application
- Undeploying a new application
- Using deploy-copy to promote a release to production
- Using deploy-copy to rollback a release that was deployed to production
- Installing mysql driver for a web application using config-deploy
- Showing what is in remote config with config-list-ls and config-list-cat
- web-app-deploy settings
$ resinctl | grep deploy deploy - deploys an application deploy-copy - copies an application deploy-list - lists all deployed applications deploy-restart - restarts an application deploy-start - starts an application deploy-stop - stops an application undeploy - undeploys an application config-deploy - deploys configuration directory config-undeploy - undeploys a config $ resinctl | grep config config-deploy - deploys configuration directory config-copy - copies configuration config-list - lists all deployed configurations config-list-ls - list contents of config dir (ex. ./lib) config-list-cat - list contents of config file config-undeploy - undeploys a config
Deploying to a local server
Turning on versioning:
$ cat /etc/resin/resin.properties | grep deploy Output: deploy_versioning : true
$ sudo grep "web-app-deploy" -A 1 /etc/resin/resin.xml Output: <web-app-deploy path="webapps" versioning="${deploy_versioning}" expand-preserve-fileset="WEB-INF/work/**"/>
"if true, use the web-app's numeric suffix as a version"