Skip to content

Commit

Permalink
Setup
Browse files Browse the repository at this point in the history
  • Loading branch information
tino097 committed Aug 16, 2018
1 parent 54fdd4a commit c6c2526
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
19 changes: 19 additions & 0 deletions ckan/lib/flask_cli.py
@@ -0,0 +1,19 @@
# encoding: utf-8

import os
import click
from flask import Flask, current_app
from flask.cli import FlaskGroup, with_appcontext

from ckan.common import config
from ckan.lib.cli import (click_config_option, load_config, parse_db_config,
paster_click_group)

import pdb; pdb.set_trace()
os.environ['FLASK_RUN_FROM_CLI'] = 'true'

@click.help_option(u'-h', u'--help')
@click_config_option
def run():
#load_config(config or ctx.obj['config'])
click.echo('Starting CKAN')
1 change: 1 addition & 0 deletions setup.py
Expand Up @@ -77,6 +77,7 @@ def parse_version(s):
'jobs = ckan.lib.cli:JobsCommand',
],
'console_scripts': [
'ckan = ckan.lib.flask_cli:run',
'ckan-admin = bin.ckan_admin:Command',
],
'paste.paster_create_template': [
Expand Down

0 comments on commit c6c2526

Please sign in to comment.