Skip to main content

Meieraha version 2

Project description

Installation

Depending on how you obtain the package, you may install it in different ways. If the package was obtained as a source distribution, you should install it using pip:

$ pip install meieraha2-<version>.zip

If you checked out a development repository, you may install the package by running:

$ python setup.py install

If you are planning on developing the package, a useful alternative to installation is:

$ python setup.py develop

or, if you do not have write access to your Python installation and are not using a virtualenv:

$ python setup.py develop --user

Usage

The package contains a Flask-based web application. To launch the application you need to do the following:

  1. Run:

    $ meieraha2-manage sampleconfig
    
  2. Follow the instructions output by the command.

To create a packaged distribution you need to run the following:

$ meieraha2-manage assets build
$ python setup.py sdist

Development

In order to run the application in development mode you need to have a full repository checked out. You also should have the compass tool installed and accessible in your path. The server can then be run in development mode as follows:

$ export CONFIG=meieraha2.config.DevConfig
$ meieraha2-manage createdb
$ meieraha2-manage loaddata
$ meieraha2-manage runserver

If you edit CSS or Javascript files, you will need to rebuild the assets bundle via

$ meieraha2-manage assets build

Deployment

There is a starter Fabric configuration file fabfile.py which may help automate deployment. It needs tayloring before used, though. Sample deployment configuration is in deploy/aws.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
meieraha2-2.2.2.tar.gz (2.0 MB) Copy SHA256 hash SHA256 Source None Apr 11, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page