2015-02-18 16:51:25 +08:00
|
|
|
cd /cartodb
|
|
|
|
source /usr/local/rvm/scripts/rvm
|
|
|
|
|
|
|
|
echo "insert into feature_flags (id,name, restricted) VALUES (1, 'heatmaps', false);" | psql -U postgres carto_db_development
|
|
|
|
echo "insert into feature_flags (id,name, restricted) VALUES (2, 'georef_disabled', false);" | psql -U postgres carto_db_development
|
|
|
|
|
|
|
|
ORGANIZATION_NAME="example"
|
|
|
|
USERNAME="admin4example"
|
|
|
|
EMAIL="admin@example.com"
|
2015-05-16 05:27:12 +08:00
|
|
|
PASSWORD="pass1234"
|
2015-02-18 16:51:25 +08:00
|
|
|
|
|
|
|
rake cartodb:db:create_user EMAIL="${EMAIL}" PASSWORD="${PASSWORD}" SUBDOMAIN="${USERNAME}"
|
|
|
|
rake cartodb:db:set_unlimited_table_quota["${USERNAME}"]
|
2015-05-16 05:27:12 +08:00
|
|
|
rake cartodb:db:create_new_organization_with_owner ORGANIZATION_NAME="${ORGANIZATION_NAME}" USERNAME="${USERNAME}" ORGANIZATION_SEATS=100 ORGANIZATION_QUOTA=102400 ORGANIZATION_DISPLAY_NAME="${ORGANIZATION_NAME}"
|
2015-02-18 16:51:25 +08:00
|
|
|
rake cartodb:db:set_organization_quota[$ORGANIZATION_NAME,100]
|