~sircmpwn/sr.ht-dev

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1 2

[PATCH docs] Update installation docs

Details
Message ID
<20181118102728.9968-1-minus@mnus.de>
Sender timestamp
1542536848
DKIM signature
missing
Download raw message
Patch: +16 -4
---
 installation.md | 20 ++++++++++++++++----
 1 file changed, 16 insertions(+), 4 deletions(-)

diff --git a/installation.md b/installation.md
index b601dba..d0202a8 100644
--- a/installation.md
+++ b/installation.md
@@ -47,9 +47,9 @@ sr.ht a consistent look and feel.
The core package is listed as a dependency of the official `*.sr.ht` packages,
so installing it explicitly is not necessary if you are using our package
repositories. If you are not using our packages, obtain the [source
code](https://git.sr.ht/~sircmpwn/srht) and install it like a typical Python
package (`./setup.py install --prefix=/usr`). You will need to install its
dependencies beforehand, for an up-to-date list see [the
code](https://git.sr.ht/~sircmpwn/srht), initialize submodules and install it
like a typical Python package (`./setup.py install --prefix=/usr`). You will
need to install its dependencies beforehand, for an up-to-date list see [the
package](https://git.sr.ht/~sircmpwn/sr.ht-pkgbuilds/tree/master/python-srht/PKGBUILD).

# Package Installation
@@ -97,10 +97,22 @@ upgrades will be managed automatically by the package, or if you're using the
source code you can run `alembic upgrade head` when you pull the latest version
down.

## Becoming admin

After setting up meta.sr.ht and registering yourself a user account, you can
give that account admin permissions:

    $ python3
    >>> from metasrht.app import db, User, UserType
    >>> u = User.query.filter_by(username='[your username]').one()
    >>> u.user_type = UserType.admin
    >>> User.query.session.commit()

# Compile static assets

This step is only necessary for users configuring sr.ht from source. Run `make`
in the root of the repository to compile static assets.
in the root of the repository to compile static assets. `setup.py` will usually
do this for you.

# Start the service

-- 
2.19.1
Details
Message ID
<20181118132608.GB11073@homura.localdomain>
In-Reply-To
<20181118102728.9968-1-minus@mnus.de> (view parent)
Sender timestamp
1542547568
DKIM signature
missing
Download raw message
Thanks!

To man.sr.ht:root
   c0bf66b..c34ee17  master -> master
Reply to thread Export thread (mbox)