We removed our free Sandbox April 25th.
You can read more on our blog.
In this tutorial, we will deploy Drupal to DotCloud.
To deploy to DotCloud, you need to create a file in the root directory of your Drupal deployment called “dotcloud.yml” which describes the structure of your application. For this application, the dotcloud.yml will look like this:
www: type: php mysql: type: mysql
Because APC interferes with the Drupal installation wizard, we’ll need to temporarily disable it. To do this, create a file in the root directory of your Drupal deployment called “php.ini” with the following contents:
All requests which don’t map to static files should be sent to index.php, which will route them appropriately. To do this, create a file called “nginx.conf” in the root directory of your Drupal deployment with the following contents:
try_files $uri $uri/ /index.php;
Before running the installation wizard, we’ll need to create a Drupal database in our MySQL instance. First, create your application on the flavor of your choice and push to DotCloud by running this command in the root directory of your Drupal deployment (on your local computer):
$ dotcloud create my_drupal_deployment $ dotcloud push my_drupal_deployment
Then connect to mysql and create the database:
$ dotcloud run my_drupal_deployment.mysql -- mysql mysql > CREATE DATABASE drupal; mysql > \q
Now you can open the url you saw when you pushed (or run “dotcloud url my_drupal_app.www”) and complete the installation wizard. To get the database credentials, run “dotcloud info my_drupal_app.mysql”.