Skip to content

sroze/tsuru-php-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tsuru PHP application example

This application show how to setup, deploy, run & update a PHP application on a Tsuru cluster.

Getting started

Clone the repository and create the Tsuru application:

git clone https://github.com/sroze/tsuru-php-example.git
tsuru app-create php-example php

Using app-info, add the Git remote named tsuru and run deploy your application:

git push tsuru master

Create a PostgreSQL instance by the way you want. This is an example with postgresapi and a shared instance:

tsuru service-add postgresapi example-db

Here's an example for a dedicated instance:

tsuru service-add postgresapi example-db dedicated

Bind the PostgreSQL database resource:

tsuru service-bind example-db

Scale

You can also scale your application by adding units (here it'll add 2 more units):

tsuru unit-add 2

About

PHP Silex application example that run on a Tsuru cluster

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages