Fondout (www.sparahallbart.se)
Installing the application:
Requirements:
- php 5.4=<
- MYSQL
- npm
- composer
- bower
- grunt
pull repository
$npm install && composer install && bower install && grunt less
A number of extensions are needed (often to be activated in your apache config httpd.conf) Find instructions following the first two pages on https://framework.zend.com/manual/2.3/en/ref/installation.html
Remember that the php module is NOT enabled by default in macOS.
php config: you must set timezone in php.ini eg: date.timezone = Europe/Stockholm
For development database should be named 'fondout_maxi', which holds fund data for a rage of dates.
For production a minified fondout database should be used, this database is called 'fondout'. This is created through a script in the scripts folder, export_minimize_db (usage $sh export_minimize_db). To use this file script/dbconfig.local must be set with the according credentials. A template is provided in dbconfig.local.dist.
Additionally to run the application config files for zf2 should be set in config/autoload/local.php where a template for which values are needed is provided in local.php.dist.
PDF documents are currently on the openshift server stored in the $OPENSHIFT_DATA_DIR. public/documents is therefore in the gitignore and symlinked in a actionhook on the openshift server. Files used today are referenced from sparahallbart.se/products for price lists and product sheets. files are uploaded to openshift staging and production server through e.g. rhc scp --app stage upload -f Sites/fondout/public/documents/large-document.pdf -r app-root/data