Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To install the current 0.11.x branch, the best approach is imitating the procedure used in the Dockerfile:

  1. install Askbot's requirements

    pip install -r askbot_requirements.txt
    
  2. install Askbot

    python setup.py install
    
  3. create a new Django project with Askbot as its only app using askbot-setup. The most basic approach is

    askbot-setup \
        -n /path/to/new/django/project \
        -e 2 -d /path/to/new/django/project/db.data \
        --create-project django
    

    For more options run askbot-setup --help. You can look at the Dockerfile for an example that uses PostgreSQL as database backend.

  4. setup database and staticfiles

    cd /path/to/new/django/project
    export DJANGO_SETTINGS_MODULE=askbot_app.settings
    python manage.py migrate
    python manage.py collectstatic
    

After that you can setup your webserver, the Django project and the database to your requirements and start using askbot.

If you are looking for a canonical deployment to try out Askbot I'd suggest you first build and then run docker image using the provided Dockerfile.

docker build -t askbot:latest --build-arg ASKBOT=. .
docker run \
    -e 'DATABASE_URL=sqlite:////askbot-site/askbot.db' \
    -e "SECRET_KEY=$(openssl rand 14 | base64)" \
    -e ADMIN_PASSWORD=admin \
    -p 8080:80 \
    askbot:latest

To install the current 0.11.x branch, the best approach is imitating the procedure used in the Dockerfile:

  1. install Askbot's requirements

    pip install -r askbot_requirements.txt
    
  2. install Askbot

    python setup.py install
    
  3. create a new Django project with Askbot as its only app using askbot-setup. The most basic approach is

    askbot-setup \
        -n /path/to/new/django/project \
        -e 2 -d /path/to/new/django/project/db.data \
        --create-project django
    

    For more options run askbot-setup --help. You can look at the Dockerfile for an example that uses PostgreSQL as database backend.

  4. setup database and staticfiles

    cd /path/to/new/django/project
    export DJANGO_SETTINGS_MODULE=askbot_app.settings
    python manage.py migrate
    python manage.py collectstatic
    

After that you can setup your webserver, the Django project and the database to your requirements and start using askbot.Askbot.

If you are looking for a canonical deployment to try out Askbot Askbot, I'd suggest you first build and then run a docker image using the provided Dockerfile.

docker build -t askbot:latest --build-arg ASKBOT=. .
docker run \
    -e 'DATABASE_URL=sqlite:////askbot-site/askbot.db' \
    -e "SECRET_KEY=$(openssl rand 14 | base64)" \
    -e ADMIN_PASSWORD=admin \
    -p 8080:80 \
    askbot:latest