Rapid Application Deployment Engine

Supported Engines

As of the last release of Rapp, we support 5 different engines:

  • Django
  • PHP
  • Rack
  • Rails 2
  • Rails 3

Rails 2, Rails 3 and Rack applications are usually auto detected. If by any reason the auto detection fails, you’ll be presented with a menu for selecting the engine you want your app to use:

$ cd /path/to/my_php_app
$ wn init
[Webbynode] Initializing application my_php_app with dns my_php_app

Supported engines:

  1. Django
  2. PHP
  3. Rack
  4. Rails 2
  5. Rails 3

Select the engine your app uses:

Rails 3.0beta

In order to enable Rails 3.0beta support, you have to mark the Install Rails 3.0beta checkbox, on the Rails section when deploying the Rapid App ReadyStack to your Webby:

And when initializing your app, you need to use the --engine=rails3 option:

$ wn init webby3067 --engine=rails3                            
[Webbynode] Initializing application testr3 with dns testr3
            Retrieving IP for Webby webby3067...
            Initializing directory structure...
            Initializing git and applying initial commit...
            Adding webbynode as git remote...

[Webbynode] Application testr3 ready for Rapid Deployment

Django 1.2.1

For more information about deploying a Django 1.2.1 application, please refer to the dedicated page.

PHP

In order to deploy a PHP application, you need either choose the to use PHP on the engines menu (see above), or use --engine=php option, like below:

$ wn init webby3067 --engine=php                            
[Webbynode] Initializing application phpapp with dns phpapp
            Retrieving IP for Webby webby3067...
            Initializing directory structure...
            Initializing git and applying initial commit...
            Adding webbynode as git remote...

[Webbynode] Application phpapp ready for Rapid Deployment

If you didn’t select PHP Engine when you first deployed, it will be installed on the fly.

$ wn push
[Webbynode] Pushing phpapp
mkdir: created directory `phpapp'
Counting objects: 11, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (6/6), done.
Writing objects: 100% (11/11), 1.12 KiB, done.
Total 11 (delta 0), reused 0 (delta 0)
Checked out master branch

----------------------------
  Webbynode git deployment 
----------------------------

Nginx+Passenger webserver detected...
Setting up DNS...

Deploying application phpapp as phpapp1.webbyapp.com...

Adding PHP support to nginx...
  => Installing dependencies, this can take a few minutes...
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  aspell aspell-en dictionaries-common gamin ghostscript gsfonts 
  libaspell15 libc-client2007b libcupsimage2 libdjvulibre-text 
  
(... a lot of installation output ...)

phpapp deployed successfully.

Created http://phpapp.webbyapp.com/

To git@67.23.79.32:phpapp
   eeaa391..7d63ae9  master -> master

[Webbynode] Finished pushing phpapp

And that’s it: your PHP app is ready to go. One nice feature of the PHP engine is that no reload or restart of the Web Server is necessary, once your vHost is setup, so each push will be instantly applied and will cause no downtime.

Comments
blog comments powered by Disqus