Initialize db and create user in 2 steps.
This commit is contained in:
parent
e8085d3e2f
commit
b372386eb2
@ -1,32 +1,32 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
SUBDOMAIN="dev"
|
||||
PASSWORD="pass1234"
|
||||
ADMIN_PASSWORD="pass1234"
|
||||
EMAIL="dev@example.com"
|
||||
|
||||
echo "--- Creating databases"
|
||||
bundle exec rake cartodb:db:setup --trace SUBDOMAIN="${SUBDOMAIN}" \
|
||||
rake cartodb:db:setup
|
||||
|
||||
echo "--- Create '${SUBDOMAIN}' user"
|
||||
rake cartodb:db:create_user --trace SUBDOMAIN="${SUBDOMAIN}" \
|
||||
PASSWORD="${PASSWORD}" ADMIN_PASSWORD="${ADMIN_PASSWORD}" \
|
||||
EMAIL="${EMAIL}"
|
||||
if test $? -ne 0; then exit 1; fi
|
||||
|
||||
# # Update your quota to 100GB
|
||||
echo "--- Updating quota to 100GB"
|
||||
bundle exec rake cartodb:db:set_user_quota["${SUBDOMAIN}",102400]
|
||||
if test $? -ne 0; then exit 1; fi
|
||||
rake cartodb:db:set_user_quota["${SUBDOMAIN}",102400]
|
||||
|
||||
# # Allow unlimited tables to be created
|
||||
echo "--- Allowing unlimited tables creation"
|
||||
bundle exec rake cartodb:db:set_unlimited_table_quota["${SUBDOMAIN}"]
|
||||
if test $? -ne 0; then exit 1; fi
|
||||
rake cartodb:db:set_unlimited_table_quota["${SUBDOMAIN}"]
|
||||
|
||||
# # Allow user to create private tables in addition to public
|
||||
echo "--- Allowing private tables creation"
|
||||
bundle exec rake cartodb:db:set_user_private_tables_enabled["${SUBDOMAIN}",'true']
|
||||
if test $? -ne 0; then exit 1; fi
|
||||
rake cartodb:db:set_user_private_tables_enabled["${SUBDOMAIN}",'true']
|
||||
|
||||
# # Set the account type
|
||||
echo "--- Setting cartodb account type"
|
||||
bundle exec rake cartodb:db:set_user_account_type["${SUBDOMAIN}",'[DEDICATED]']
|
||||
if test $? -ne 0; then exit 1; fi
|
||||
rake cartodb:db:set_user_account_type["${SUBDOMAIN}",'[DEDICATED]']
|
||||
|
Loading…
Reference in New Issue
Block a user