This is a PHP based web application to help manage your postmortems.
- PHP 5.4 or higher
- MySQL 5.5 or higher
- Apache
- mod_rewrite
This is a basic example for an Apache vhost. The MORGUE_ENVIRONMENT
variable
is used to determine which config file to use.
<VirtualHost *:80>
ServerName morgue.hostname.com
DocumentRoot /var/www/morgue
<Directory /var/www/morgue>
AllowOverride All
</Directory>
SetEnv MORGUE_ENVIRONMENT development
php_value include_path ".:/usr/share/pear:./features"
</VirtualHost>
Restart apache and hit the servername you defined above.
Create a database named morgue and give access to the morgue user with the morgue password for the dev environment:
CREATE DATABASE morgue;
CREATE USER 'morgue'@'localhost' IDENTIFIED BY 'morgue';
GRANT ALL ON morgue.* TO 'morgue'@'localhost';
Then add the schema to the database
mysql -p -u morgue -h localhost morgue < schemas/morgue.sql
Using PHP built-in webserver it is possible to start quickly view what morgue does with the following command
MORGUE_ENVIRONMENT=development php -d include_path=".:./features" -S localhost:8000
Open http://localhost:8000 to view Morgue
You can run the unit test suite with:
make unittests
- Fork the repository
- Hack away
- Add tests so we don't accidentally break something in the future
- Push the branch up to GitHub (bonus points for topic branches)
- Send a pull request to the etsy/morgue project.