https://github.com/projectcleverweb/drupal-testing
https://github.com/projectcleverweb/drupal-testing
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/projectcleverweb/drupal-testing
- Owner: ProjectCleverWeb
- License: gpl-2.0
- Created: 2014-07-09T05:25:10.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-07-10T17:59:47.000Z (over 11 years ago)
- Last Synced: 2025-01-15T08:04:20.603Z (about 1 year ago)
- Language: PHP
- Size: 3.41 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.txt
- License: LICENSE.txt
Awesome Lists containing this project
README
Quickstart Explanation
----------------------
The following is an explanation of how this Quickstart was created so you can use it as a guide in creating your own Quickstarts.
* Config File: Because Pagoda Box needs a different config file than a local version of the site, we created a new directory in the root of the project called "pagoda" and created a pagoda version of the config file there. Then we created an After Build deploy hook in the Boxfile that moved that file from pagoda/settings.php to sites/default/settings.php. Also, in place of the static database credentials, we used the auto-created environment variables.
after_build:
- "mv pagoda/settings.php sites/default/settings.php"
* Database Component: An empty database was created by adding a db component to the Boxfile.
db1:
name: drupal
* Database Import: Since the install script creates database tables, it was necessary to import an SQL file. We can do that with a Before Deploy hook, but since that import should only happen on the first deploy and not subsequent deploys, it was placed in the Boxfile.install file.
before_deploy:
- "mysql -h $DB1_HOST --port $DB1_PORT -u $DB1_USER -p$DB1_PASS $DB1_NAME < pagoda/quickstart-db.sql"