Thank pbreit,

I use Fabric now for deployment, it works great... It's to simple! It also
become a time consumer because you can make a Fab command for almost
anything ;-)

Richard

On Thu, Sep 22, 2011 at 4:30 PM, pbreit <[email protected]> wrote:

> Here's my setup script:
>
> def setup_pgsql():
>     run('apt-get install -y postgresql python-psycopg2 postgresql-contrib')
>     sudo('psql -c "ALTER USER postgres WITH ENCRYPTED PASSWORD
> \'%(pw)s\';"' % env, user='postgres')
>     sudo('psql -c "CREATE DATABASE %(db)s WITH OWNER postgres"' % env,
> user='postgres')
>     run('/etc/init.d/postgresql-8.4 restart')
>

Reply via email to