I do have a little problem with the deployment of our django-app. Maybe
you guys (and girls) can help?
Its nothing fancy yet, just a postgresql (on a different machine) and
django served via wsgi on apache2.
The snipped below from our recipe does everything alright in
updating the source from the repo and deploying it. But the one thing
it doesn’t do is restarting the apache2. I tried adding notifies at
several places, I even did put an execute-block in after_restart but I
can’t get apache2 to restart when the deployment switched to a new
Do you have an idea?
Thanks in advance,
application “ohf2” do
packages [“pytz”, “django”, “django_extensions”, “django-mptt”,
migration_command root_dir+"/shared/env/bin/python manage.py syncdb
database do database "ohf2alpha"¬ adapter "postgresql_psycopg2" username dbuser password dbpass host dbservername end
notifies :restart, “service[apache2]”, :immediately