File tree Expand file tree Collapse file tree 6 files changed +24
-24
lines changed Expand file tree Collapse file tree 6 files changed +24
-24
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,10 @@ mysql_settings: &mysql_settings
2
2
adapter : mysql2
3
3
encoding : utf8
4
4
pool : 5
5
- username : your-mysql-user-here
6
- password : your-mysql-password-here
7
- database : your-mysql-database-here
8
- socket : your-cloud-sql-socket-path
5
+ username : [MYSQL_USER]
6
+ password : [MYSQL_PASS]
7
+ database : [MYSQL_DATABASE]
8
+ socket : /cloudsql/[YOUR_INSTANCE_CONNECTION_NAME]
9
9
10
10
development :
11
11
<< : *mysql_settings
Original file line number Diff line number Diff line change 35
35
db_file = File . expand_path ( "../../config/database.yml" , __FILE__ )
36
36
db_config = File . read ( db_file )
37
37
db_values = {
38
- "your-mysql-user-here " => "MYSQL_USER" ,
39
- "your-mysql-password-here " => "MYSQL_PASSWORD" ,
40
- "your-mysql-IPv4-address-here " => "MYSQL_HOST " ,
41
- "your-mysql-database-here " => "MYSQL_DBNAME "
38
+ "[MYSQL_USER] " => "MYSQL_USER" ,
39
+ "[MYSQL_PASS] " => "MYSQL_PASSWORD" ,
40
+ "[MYSQL_DATABASE] " => "MYSQL_DBNAME " ,
41
+ "[YOUR_INSTANCE_CONNECTION_NAME] " => "MYSQL_SOCKET "
42
42
}
43
43
44
44
db_values . each { |key , envkey |
Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ default: &default
4
4
# adapter: mysql2
5
5
# encoding: utf8
6
6
# pool: 5
7
- # username: your-mysql-user-here
8
- # password: your-mysql-password-here
9
- # host: your-mysql-IPv4-address-here
10
- # database: your-mysql-database-here
7
+ # username: [MYSQL_USER]
8
+ # password: [MYSQL_PASS]
9
+ # database: [MYSQL_DATABASE]
10
+ # socket: /cloudsql/[YOUR_INSTANCE_CONNECTION_NAME]
11
11
12
12
# Google Cloud Datastore Sample Database Configuration
13
13
# ----------------------------------------------------
Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ default: &default
4
4
# adapter: mysql2
5
5
# encoding: utf8
6
6
# pool: 5
7
- # username: your-mysql-user-here
8
- # password: your-mysql-password-here
9
- # host: your-mysql-IPv4-address-here
10
- # database: your-mysql-database-here
7
+ # username: [MYSQL_USER]
8
+ # password: [MYSQL_PASS]
9
+ # database: [MYSQL_DATABASE]
10
+ # socket: /cloudsql/[YOUR_INSTANCE_CONNECTION_NAME]
11
11
12
12
# Google Cloud Datastore Sample Database Configuration
13
13
# ----------------------------------------------------
Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ default: &default
4
4
# adapter: mysql2
5
5
# encoding: utf8
6
6
# pool: 5
7
- # username: your-mysql-user-here
8
- # password: your-mysql-password-here
9
- # host: your-mysql-IPv4-address-here
10
- # database: your-mysql-database-here
7
+ # username: [MYSQL_USER]
8
+ # password: [MYSQL_PASS]
9
+ # database: [MYSQL_DATABASE]
10
+ # socket: /cloudsql/[YOUR_INSTANCE_CONNECTION_NAME]
11
11
12
12
# Google Cloud Datastore Sample Database Configuration
13
13
# ----------------------------------------------------
Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ default: &default
4
4
# adapter: mysql2
5
5
# encoding: utf8
6
6
# pool: 5
7
- # username: your-mysql-user-here
8
- # password: your-mysql-password-here
9
- # host: your-mysql-IPv4-address-here
10
- # database: your-mysql-database-here
7
+ # username: [MYSQL_USER]
8
+ # password: [MYSQL_PASS]
9
+ # database: [MYSQL_DATABASE]
10
+ # socket: /cloudsql/[YOUR_INSTANCE_CONNECTION_NAME]
11
11
12
12
# Google Cloud Datastore Sample Database Configuration
13
13
# ----------------------------------------------------
You can’t perform that action at this time.
0 commit comments