Rapid Application Deployment Engine

Supported Engines

As of the last release of Rapp, we support the following engines:

  • Static HTML
  • Django
  • PHP
  • Rack
  • Rails 2
  • Rails 3
  • WSGI (experimental)
  • Node.js

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. HTML
  2. Django
  3. PHP
  4. Rack
  5. Rails 2
  6. Rails 3

Select the engine your app uses:

Static HTML

A static HTML deployment won’t create any databases, just push the static site contents upstream.

Node.js

For detailed information about deploying a Node.js app, you may want to read our dedicated Node.js section.

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