mirror of
https://github.com/getredash/redash.git
synced 2026-05-12 03:03:29 -04:00
Merge pull request #153 from EverythingMe/feature_data_source
Shell wrapper to source env before running command
This commit is contained in:
3
Makefile
3
Makefile
@@ -15,8 +15,5 @@ pack:
|
||||
upload:
|
||||
python bin/upload_version.py $(FULL_VERSION) $(FILENAME)
|
||||
|
||||
migrate:
|
||||
source .env && PYTHONPATH=. python $(MIGRATION)
|
||||
|
||||
test:
|
||||
nosetests --with-coverage --cover-package=redash tests/*.py
|
||||
|
||||
@@ -52,6 +52,15 @@ def runworkers():
|
||||
def make_shell_context():
|
||||
return dict(app=app, db=db, models=models)
|
||||
|
||||
@manager.command
|
||||
def check_settings():
|
||||
from types import ModuleType
|
||||
|
||||
for name in dir(settings):
|
||||
item = getattr(settings, name)
|
||||
if not callable(item) and not name.startswith("__") and not isinstance(item, ModuleType):
|
||||
print "{} = {}".format(name, item)
|
||||
|
||||
@database_manager.command
|
||||
def create_tables():
|
||||
"""Creates the database tables."""
|
||||
|
||||
Reference in New Issue
Block a user