-
-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[jarun#753] temporarily block flake-admin-v2 & actualize install instructions #754
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,33 +20,28 @@ So be sure to have `python3`, `python3-pip` , `python3-dev`, `libffi-dev` packag | |
#### Dependencies | ||
|
||
``` | ||
$ python3 -m pip install --user --upgrade pip | ||
$ python3 -m pip install --user virtualenv | ||
$ python3 -m virtualenv env | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Installing |
||
$ source env/bin/activate | ||
$ # venv activation (for development) | ||
$ python3 -m venv venv | ||
$ source venv/bin/activate | ||
$ pip install --upgrade pip | ||
``` | ||
|
||
#### From PyPi | ||
|
||
```sh | ||
$ # basic server | ||
$ # regular/venv install | ||
$ pip3 install "buku[server]" | ||
$ # server with reverse proxy | ||
$ pip3 install "buku[server,reverse_proxy]" | ||
$ # pipx install bukuserver with reverse proxy | ||
$ # pipx install | ||
$ pipx install "buku[server]" | ||
$ pipx inject buku https://github.com/rachmadaniHaryono/flask-reverse-proxy-fix/archive/refs/tags/v0.2.2rc1.zip | ||
``` | ||
|
||
#### From source | ||
|
||
```sh | ||
$ git clone https://github.com/jarun/buku | ||
$ cd buku | ||
$ # basic server | ||
$ # regular/venv install | ||
$ pip3 install ".[server]" | ||
$ # server with reverse_proxy | ||
$ pip3 install ".[server,reverse_proxy]" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
``` | ||
|
||
#### Using Docker | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,8 +76,8 @@ def init_locale(app): | |
except ImportError: | ||
from flask_babel import Babel | ||
Babel().init_app(app, locale_selector=lambda: app.config['BUKUSERVER_LOCALE']) | ||
except Exception: | ||
app.logger.warning('failed to init locale') | ||
except Exception as e: | ||
app.logger.warning(f'failed to init locale ({e})') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This includes the error message into the warning, making it easier to tell what happened |
||
|
||
|
||
def create_app(db_file=None): | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Depending on OS,
pip install --user
is no longer allowed (unless you pass--break-system-packages
as well)