Skip to content

Instantly share code, notes, and snippets.

@sanderson
Created April 7, 2017 15:50
Show Gist options
  • Save sanderson/6685a04f243dd5e41b26eaacc2fcc580 to your computer and use it in GitHub Desktop.
Save sanderson/6685a04f243dd5e41b26eaacc2fcc580 to your computer and use it in GitHub Desktop.
Changes to CraftCMS for Nanobox
run.config:
engine: php
engine.config:
runtime: php-7.0
document_root: public
webserver: apache
extensions:
- ctype
- pdo
- pdo_mysql
- mcrypt
- gd
- mbstring
- json
- curl
- dom
- iconv
- imagick
- session
extra_packages:
- ImageMagick
web.craft:
start: php-server
network_dirs:
data.storage:
- craft/storage
log_watch:
craft[error]: craft/storage/runtime/logs/craft.log
craft[stacktrace]: craft/storage/runtime/logs/phperrors.log
data.db:
image: nanobox/mysql:5.6
data.storage:
image: nanobox/unfs:0.9
<?php
/**
* Database Configuration
*
* All of your system's database configuration settings go in here.
* You can see a list of the default settings in craft/app/etc/config/defaults/db.php
*/
return array(
// The database server name or IP address. Usually this is 'localhost' or '127.0.0.1'.
'server' => $_ENV['DATA_DB_HOST'],
// The name of the database to select.
'database' => 'gonano',
// The database username to connect with.
'user' => $_ENV['DATA_DB_USER'],
// The database password to connect with.
'password' => $_ENV['DATA_DB_PASS'],
// The prefix to use when naming tables. This can be no more than 5 characters.
'tablePrefix' => 'craft',
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment