Using the fork_cms deploy gem

37
Fork CMS Deploy Gem

Transcript of Using the fork_cms deploy gem

ForkCMS Deploy Gem

Hello, I am Tijs

https://github.com/tijsverkoyen

I work at SumoCoders and we are hiring

sumocoders.be

Deployment, que!?

Deployment is all of the activities that make a

software system available for use.

It should be interpreted as a general process that has to be customized

according to specific requirements or characteristics.

Several steps:

(initial setup)

release

install

activate/deactivate

Features of the gem

a gem?

instant switch*

* Default van Capistrano

rollback*

cap rollback

* Default van Capistrano

specific for Fork CMS

supports all versions

How to use?

0. install capistrano

gem install capistrano -v 2.15.5

1. install the gem

gem install forkcms_deploy

2. create the Capfile

vim Capfile

3. paste the default ;-)

4. alter the file

5. setup

cap deploy:setup

6. deploy

cap deploy

Some nice extra’s

use a Gemfile ;-)

gem 'capistrano', '~> 2.15.5'…..gem 'forkcms_deploy', '~> 2.7.0'

multistage

migrations

folder aanmaken in ./migrations

mkdir -p ./migrations/20150526-initial-migration

SQL-statements in ./migrations/xxx/update.sql

touch update.sql

extra locale in ./migrations/xxx/locale.xml

touch locale.xml

code to execute in ./migrations/xxx/update.php

touch update.php

Nuttige links

• http://en.wikipedia.org/wiki/Software_deployment • http://capistranorb.com/ • https://rubygems.org/gems/capistrano/versions/2.15.5 • https://github.com/sumocoders/forkcms_deploy • https://rubygems.org/gems/forkcms_deploy • http://giphy.com/

https://joind.in/14611

Questions?