Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!

That's this?

This script configures linux machine to run django projects. You can use it
as template to develop your own installation script.

This script works with debian machine, it uses aptitude to install webserver,
database, python, gcc, virtualenv, pip, etc.

Webserver stack is nginx + uwsgi + django + postgres.

How to use it?

1) Buy VPS. Get root SSH credentials. Setup RSA authorization::

    ssh-copy-id root@your-server

2) Upload the script::

    scp root@your-server:/root/

3) Log in to VPS as root

4) Check your /etc/apt/sources.list. Normally it should contains only wheezy records.

    To speed up apt operations you may choose debian repo mirror which is close to your
    geo location.  For example, if your server located in Nederlands country that has
    code NL then you can try to replace (if such string exists in
    your config) with

    Also do not forget to add "contrib non-free" components if they does not exist.
    Example of default digitalocean config:

        deb wheezy main
        deb wheezy/updates
    After modification:

        deb wheezy main contrib non-free
        deb wheezy/updates main contrib non-free

5) Update script::

    * Change INSTALL_* variables
6) Run the script:

    $ bash

During installation you'll need to confirm installation of various software packages (and resolve
issues if any).

That's all. Of course, you can and should adapt script for you taste.


The script is self-documented, being the simple shell script.

Some extra comments in russian could be found here:


Create ticket on
or drop mail to

Recent activity

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.