GithubHelp home page GithubHelp logo

joverthegrey / dokku-ttrss Goto Github PK

View Code? Open in Web Editor NEW

This project forked from swg/dokku-ttrss

0.0 1.0 0.0 15 KB

Deploy Tiny Tiny RSS on Dokku, a self-hosted Heroku PaaS alternative.

PHP 68.54% Shell 31.46%

dokku-ttrss's Introduction

dokku-ttrss

Installation

Create the app and database container:

dokku apps:create ttrss

dokku postgres:create ttrss-pgsql

Configure the app for initial deployment:

dokku config:set ttrss SELF_URL_PATH='http://ttrss.dokku.me'

dokku config:set ttrss WRITE_SCHEMA=true

Deploy the app:

git remote add [email protected]:ttrss

git push dokku master

Unset WRITE_SCHEMA:

dokku config:unset WRITE_SCHEMA

Configuration

All configuration is done with environment variables and setting them via Dokku.

They are documented in the app.json.

Plugins

Plugins with git repositories can be cloned with the config variable GIT_PLUGINS:

dokku config:set --no-restart ttrss GIT_PLUGINS='https://github.com/DigitalDJ/tinytinyrss-fever-plugin,fever;'

dokku config:set --no-restart ttrss GIT_PLUGINS='https://github.com/ttplugin/example,example;https://github.com/ttplugin/eg_proj,another;'

Note: you will have to rebuild the container afterwards for these to work:

dokku config:set --no-restart ttrss GIT_PLUGINS='https://repo.git/repo.git,repo'

dokku ps:rebuild ttrss

Unlike system plugins these are enabled in the web interface, not via the config varable PLUGINS.

See fox/tt-rss/wiki/Plugins for more info.

Backing up

Dump the database: dokku postgres:export ttrss-database | xz -9ev > ttrss-$(date +%Y%m%d-%H%M).xz

Updating

Updating tt-rss is done through rebuilding:

dokku ps:rebuild ttrss

If a schema update is required, run the following command:

dokku run ttrss vendor/fox/ttrss/update.php --update-schema

ERROR: Failed to download minimal PHP for bootstrapping

This is usually caused by the buildpack/herokuish being outdated.

I recommend you update your dokku installation first and foremost, but a quick fix can be achieved by manually setting the buildpack URL.

Find a recent buildpack version here: https://github.com/heroku/heroku-buildpack-php/releases

And substitute the ref at the end of this URL with the version you choose:

dokku config:set ttrss BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-php.git#v${VERSION}

dokku ps:rebuild ttrss

You can check the current version of your buildpack using dokku report:

dokku report | grep heroku

After upgrading your configuration, remember to unset the BUILDPACK_URL:

dokku config:unset ttrss BUILDPACK_URL

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.