mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-25 08:23:46 +00:00
Reset BDD provoque apply migrations et collect statics
This commit is contained in:
parent
1541434e8f
commit
f81d94ea28
1 changed files with 3 additions and 1 deletions
|
@ -789,7 +789,8 @@ main_function() {
|
||||||
echo " * {update-packages} Install the missing APT and pip packages"
|
echo " * {update-packages} Install the missing APT and pip packages"
|
||||||
echo " * {update-settings} Interactively rewrite the settings file"
|
echo " * {update-settings} Interactively rewrite the settings file"
|
||||||
echo " * {reset-db} ------ Erase the previous local database, setup a new empty"
|
echo " * {reset-db} ------ Erase the previous local database, setup a new empty"
|
||||||
echo " one and apply the Django migrations on it."
|
echo " one and apply the Django migrations on it and collect"
|
||||||
|
echo " Django statics."
|
||||||
echo " Parameters:"
|
echo " Parameters:"
|
||||||
echo " * <db_password> -- the clear-text password to connect to the database"
|
echo " * <db_password> -- the clear-text password to connect to the database"
|
||||||
echo " * [db_engine_type] the SQL engine to use ('mysql' or 'postgresql')."
|
echo " * [db_engine_type] the SQL engine to use ('mysql' or 'postgresql')."
|
||||||
|
@ -854,6 +855,7 @@ main_function() {
|
||||||
db_username="re2o"
|
db_username="re2o"
|
||||||
fi
|
fi
|
||||||
install_database "$db_engine_type" 1 "$db_name" "$db_username" "$db_password"
|
install_database "$db_engine_type" 1 "$db_name" "$db_username" "$db_password"
|
||||||
|
update-django
|
||||||
else
|
else
|
||||||
echo "Invalid arguments !"
|
echo "Invalid arguments !"
|
||||||
echo "Usage: install_re2o setup-db <db_password> [<db_engine_type>] [<db_name>] [<db_username>]"
|
echo "Usage: install_re2o setup-db <db_password> [<db_engine_type>] [<db_name>] [<db_username>]"
|
||||||
|
|
Loading…
Reference in a new issue