-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Load configurations from env files instead of setup_conf.yml
First step in reorganizing the configuration files. Now seeds.yml is used to set information used when seeding the db, .env files are used for configurations loaded every time the application starts and configatron is soon to be removed.
- Loading branch information
Showing
17 changed files
with
124 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Database configurations | ||
MCONF_DATABASE_DEV_ADAPTER='mysql2' | ||
MCONF_DATABASE_DEV='mconf_web_dev' | ||
MCONF_DATABASE_DEV_USERNAME='root' | ||
MCONF_DATABASE_DEV_PASSWORD='' | ||
|
||
# Scope for all URLs related to conferences | ||
MCONF_CONFERENCE_SCOPE='nothing' | ||
|
||
# Scope for the short URLs of web conference rooms | ||
MCONF_CONFERENCE_SCOPE_ROOMS='lol' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
MCONF_DATABASE_PROD_ADAPTER='mysql2' | ||
MCONF_DATABASE_PROD='mconf_web_production' | ||
MCONF_DATABASE_PROD_USERNAME='root' | ||
MCONF_DATABASE_PROD_PASSWORD='' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
MCONF_DATABASE_TEST_ADAPTER='mysql2' | ||
MCONF_DATABASE_TEST='mconf_web_test' | ||
MCONF_DATABASE_TEST_USERNAME='root' | ||
MCONF_DATABASE_TEST_PASSWORD='' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
MCONF_DATABASE_ADAPTER='mysql2' | ||
MCONF_DATABASE='mconf_test' | ||
MCONF_DATABASE_USERNAME='travis' | ||
MCONF_DATABASE_PASSWORD='' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# MySQL (default setup). Versions 4.1 and 5.0 are recommended. | ||
|
||
development: | ||
adapter: <%= ENV['MCONF_DATABASE_DEV_ADAPTER'] || 'mysql2' %> | ||
database: <%= ENV['MCONF_DATABASE_DEV'] || 'mconf_web_dev' %> | ||
username: <%= ENV['MCONF_DATABASE_DEV_USERNAME'] %> | ||
password: <%= ENV['MCONF_DATABASE_DEV_PASSWORD'] %> | ||
socket: <%= ENV['MCONF_DATABASE_DEV_SOCKET'] || '/var/run/mysqld/mysqld.sock' %> | ||
encoding: utf8 | ||
|
||
test: | ||
adapter: <%= ENV['MCONF_DATABASE_TEST_ADAPTER'] || 'mysql2' %> | ||
database: <%= ENV['MCONF_DATABASE_TEST'] || 'mconf_web_test' %> | ||
username: <%= ENV['MCONF_DATABASE_TEST_USERNAME'] %> | ||
password: <%= ENV['MCONF_DATABASE_TEST_PASSWORD'] %> | ||
socket: <%= ENV['MCONF_DATABASE_TEST_SOCKET'] || '/var/run/mysqld/mysqld.sock' %> | ||
encoding: utf8 | ||
|
||
production: | ||
adapter: <%= ENV['MCONF_DATABASE_PROD_ADAPTER'] || 'mysql2' %> | ||
database: <%= ENV['MCONF_DATABASE_PROD'] || 'mconf_web_production' %> | ||
username: <%= ENV['MCONF_DATABASE_PROD_USERNAME'] %> | ||
password: <%= ENV['MCONF_DATABASE_PROD_PASSWORD'] %> | ||
socket: <%= ENV['MCONF_DATABASE_PROD_SOCKET'] || '/var/run/mysqld/mysqld.sock' %> | ||
encoding: utf8 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# | ||
# This file is used to seed the database after it is created | ||
# (by `rake db:reset` or `rake db:seed`). | ||
# | ||
|
||
# The first admin you will use to login and setup the application. | ||
admin: | ||
username: "admin" | ||
email: "[email protected]" | ||
password: "admin" | ||
|
||
# The first, only and default Site model with general configurations for the website. | ||
# You can add here any attribute available in the model Site. | ||
site: | ||
name: "Mconf Dev" | ||
description: "Mconf Development Website" | ||
domain: "localhost:3000" | ||
smtp_login: "" | ||
smtp_password: "" | ||
smtp_server: "" | ||
smtp_domain: "localhost" | ||
smtp_sender: "[email protected]" | ||
smtp_use_tls: false | ||
smtp_auto_tls: false | ||
smtp_auth_type: "" | ||
smtp_port: 1025 | ||
|
||
# The first and default webconference server. | ||
webconf_server: | ||
name: "Default Server" | ||
url: "http://test-install.blindsidenetworks.com/bigbluebutton/api" | ||
secret: "8cd8ef52e8e101574e400365b55e11a6" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters