You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Python 3.6 is sufficiently old at this point that we don't need to keep testing on it. This will reduce the number of things we need to tend and care for with this application and service. Change-Id: Iadea5270f54631ef72a68a37073fd8d337bc4c5c |
6 months ago | |
|---|---|---|
| clientlib | 17 years ago | |
| editors/vim | 8 years ago | |
| lodgeit | 1 year ago | |
| scripts | 3 years ago | |
| tests | 6 months ago | |
| .gitignore | 6 months ago | |
| .gitreview | 4 years ago | |
| .mailmap | 7 years ago | |
| .stestr.conf | 6 months ago | |
| .zuul.yaml | 6 months ago | |
| Dockerfile | 6 months ago | |
| Makefile | 15 years ago | |
| README | 2 years ago | |
| TODO | 9 years ago | |
| babel.ini | 15 years ago | |
| bindep.txt | 3 years ago | |
| lodgeit.wsgi | 8 years ago | |
| manage.py | 6 years ago | |
| requirements.txt | 2 years ago | |
| setup.cfg | 6 months ago | |
| setup.py | 3 years ago | |
| test-requirements.txt | 6 months ago | |
| tox.ini | 6 months ago | |
README
==============
LodgeIt Readme
==============
Lodgeit implements a pastebin and some scripts to paste the service.
Installation
~~~~~~~~~~~~
LodgeIt requires at least Python 2.5 to work correctly. Next to this LodgeIt has
quite a few of dependencies as well as a nice bootstrap process. This is documented
on the following slides.
Dependencies and virtual environment
====================================
To get LodgeIt work properly we need those dependencies: Python (at least 2.5),
python-setuptools and git.
For Ubuntu (or any Debian based distribution) use ``aptitude`` to install::
aptitude install python-dev python-setuptools python-virtualenv git
Now we can install LodgeIt. But first we need to clone LodgeIt from the
git repository. To do that you create a new folder ``lodgeit-dev`` in your
projects directory and change into it. There we initialize the virtual
environment and clone LodgeIt::
git clone https://opendev.org/opendev/lodgeit
Right before we can initialize the virtual environment we need to install some
development packages to compile the python imaging library.
For Ubuntu again ``aptitude`` (as root)::
sudo aptitude install build-essential
apt-get build-dep python-imaging
Now it's possible to install the virtual environment. This is done with a simple
Python command::
# assumed that you are located in lodgeit-dev/lodgeit
python scripts/make-bootstrap.py > ../bootstrap.py
cd ..
# make sure that the virtualenv is not activated. If yes, execute `deactivate`
python bootstrap.py .
You are ready to run now.
Database and other things
=========================
We are now ready to enter the virtual environment (assumed you are located in
``lodgeit-dev/lodgeit``)::
. ../bin/activate
LodgeIt initializes it's database per default on /tmp/lodgeit.db, you can change
that path in the manage.py by modifying ``dburi``.
Now start the development server::
python manage.py runserver
Enjoy!
Environment Settings
====================
LODGEIT_TITLE_OVERRIDE : <string>
Arbitrary string to override the main heading for site customisation