adding storage support

parent a7fa4a36
...@@ -12,3 +12,6 @@ handlers: ...@@ -12,3 +12,6 @@ handlers:
- url: /.* - url: /.*
script: index.php script: index.php
# Set bucket name
env_variables:
GOOGLE_STORAGE_BUCKET: "wbt2020"
...@@ -380,10 +380,8 @@ $config['encryption_key'] = 'GLn08ulSFJM3dTx4Q17o7hdFjlSEeX9I'; ...@@ -380,10 +380,8 @@ $config['encryption_key'] = 'GLn08ulSFJM3dTx4Q17o7hdFjlSEeX9I';
$config['sess_driver'] = 'memcached'; $config['sess_driver'] = 'memcached';
$config['sess_save_path'] = 'localhost:11211'; $config['sess_save_path'] = 'localhost:11211';
#$config['sess_driver'] = 'database';
$config['sess_cookie_name'] = 'ci_session'; $config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200; $config['sess_expiration'] = 7200;
#$config['sess_save_path'] = 'ci_sessions';
$config['sess_match_ip'] = FALSE; $config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 300; $config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = FALSE; $config['sess_regenerate_destroy'] = FALSE;
......
...@@ -72,7 +72,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); ...@@ -72,7 +72,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
*/ */
$active_group = 'default'; $active_group = 'default';
$query_builder = TRUE; $query_builder = TRUE;
/*
$db['default'] = array( $db['default'] = array(
'dsn' => '', 'dsn' => '',
'hostname' => '35.230.156.110', 'hostname' => '35.230.156.110',
...@@ -94,6 +94,28 @@ $db['default'] = array( ...@@ -94,6 +94,28 @@ $db['default'] = array(
'failover' => array(), 'failover' => array(),
'save_queries' => TRUE 'save_queries' => TRUE
); );
*/
$db['default'] = array(
'dsn' => '',
'hostname' => 'localhost:3308',
'username' => 'appdbuser',
'password' => '123qweasd',
'database' => 'appdb',
'dbdriver' => 'mysqli',
'dbprefix' => '',
'pconnect' => FALSE,
'db_debug' => (ENVIRONMENT !== 'production'),
'cache_on' => FALSE,
'cachedir' => '',
'char_set' => 'utf8',
'dbcollat' => 'utf8_general_ci',
'swap_pre' => '',
'encrypt' => FALSE,
'compress' => FALSE,
'stricton' => FALSE,
'failover' => array(),
'save_queries' => TRUE
);
/* /*
$db['default'] = array( $db['default'] = array(
......
...@@ -11,7 +11,8 @@ ...@@ -11,7 +11,8 @@
"source": "https://github.com/bcit-ci/CodeIgniter" "source": "https://github.com/bcit-ci/CodeIgniter"
}, },
"require": { "require": {
"php": ">=5.3.7" "php": ">=5.3.7",
"google/cloud-storage": "^1.0"
}, },
"suggest": { "suggest": {
"paragonie/random_compat": "Provides better randomness in PHP 5.x" "paragonie/random_compat": "Provides better randomness in PHP 5.x"
......
CREATE TABLE IF NOT EXISTS `ci_sessions` (
`id` varchar(128) NOT NULL,
`ip_address` varchar(45) NOT NULL,
`timestamp` int(10) unsigned DEFAULT 0 NOT NULL,
`data` blob NOT NULL,
KEY `ci_sessions_timestamp` (`timestamp`)
);
ALTER TABLE ci_sessions ADD PRIMARY KEY (id);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment