I have a php application ( http://github.com/tchalvak/ninjawars ), basically a php based web game that I run at http://ninjawars.net . I often configure and install the application for myself to develop localhost, and this is a somewhat hacked process with error and error. Now that I have opened the application, I have some users who want to install it and make changes, send patches, etc., and I want to make it as easy as possible for them.
I heard about Ruby Gems, which I consider a kind of package management system for ruby applications. Is there anything useful for php? Otherwise, what should I do to make the installation as simple as I can?
Now I think that the general idea of the installation process may be simple:
All Deployments
1. Copy a live database (probably the easiest) or run any outstanding migrations off of a skeleton database.
2. Set permissions in pg_hba for the database, host, and user to match your configuration
Manually from within the /ninjawars/ folder of your working copy
1. ln -s docs/harkSAMPLEhtaccess deploy/www/.htaccess
3. ln -s docs/tchalvakSAMPLEresources.php deploy/resources.php
4. mkdir -p deploy/resources/logs
6. mkdir deploy/templates/compiled
7. chmod 777 deploy/templates/compiled
5. configure a virtualhost in apache (should be optional, this may be able to be handled by the .htaccess, I'm not sure)
So biggies is chmodding, copying the database and editing the virtual host.
Simplifying as much as I can on Linux would be great, all the more simplifying it on windows (this is an unfamiliar land where many of my users are now located). Suggestions?
source
share