Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ryanj/php-addon-cart-test
creating a basic test case for using add-on carts with php
https://github.com/ryanj/php-addon-cart-test
Last synced: 13 days ago
JSON representation
creating a basic test case for using add-on carts with php
- Host: GitHub
- URL: https://github.com/ryanj/php-addon-cart-test
- Owner: ryanj
- Created: 2014-06-21T20:02:32.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-06-21T21:28:30.000Z (over 10 years ago)
- Last Synced: 2024-10-11T00:12:21.575Z (about 1 month ago)
- Language: PHP
- Size: 867 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
To host this project locally ([PHP-5.4 or better required](http://us3.php.net/manual/en/features.commandline.webserver.php)), run:
php -S localhost:8080 -t static app.php
You can also pass temporary environment values to a local webserver:
LEGACY_DB_PASSWORD=P455W0RD php -S localhost:8080 -t static app.php
To spin up a new copy of this application on an OpenShift-powered cloud, use the [`rhc` command line tool](http://rubygems.org/gems/rhc):
rhc app create dbtest php-5.4 --from-code=https://github.com/ryanj/php-addon-cart-test.git
Visit the resulting application url to check it's initial state. The DB connection strings should all read: `UNAVAILABLE`
Load an add-on cartridge:
rhc cartridge add mysql -a dbtest
Then, restart your webserver in order to read the new cart-provided DB connection strings:
rhc app restart dbtest
Reload your web browser to see the result.
## License
This code is dedicated to the public domain to the maximum extent permitted by applicable law, pursuant to CC0 (http://creativecommons.org/publicdomain/zero/1.0/)