Need to setup gpg-agent first, on OSX I use keychain (it also does ssh-agent)
$ brew info keychain
keychain: stable 2.8.5
User-friendly front-end to ssh-agent(1)
https://www.funtoo.org/Keychain
/usr/local/Cellar/keychain/2.8.5 (7 files, 108.5KB) *| open Eio | |
| let process item = if Random.int 4 = 0 then Error (`Item item) else Ok () | |
| let () = | |
| Eio_main.run @@ fun env -> | |
| let clock = Eio.Stdenv.clock env in | |
| (* stream with capacity of 25 limits concurrent execution *) | |
| let stream = Eio.Stream.create 25 in | |
| let errors = ref [] in |
| function switch_pg { | |
| local version_to_run=$1 | |
| local currently_running_version=$(psql --no-psqlrc -t -c 'show server_version;' postgres | xargs) | |
| # check if you're erroneously switching to the same version | |
| if [ "$version_to_run" = "$currently_running_version" ]; then | |
| echo "Postgres $version_to_run is already running." | |
| return 1 | |
| fi |
| #!/bin/bash | |
| # `gitea dump` doesn't currently back up LFS data as well, only git repos | |
| # It primarily backs up the SQL DB, and also the config / logs | |
| # We'll backup like this: | |
| # * "gitea dump" to backup the DB and config etc | |
| # * tar / bzip all the repos since they will be skipped | |
| # * Not rotated because git data is immutable (normally) so has all data | |
| # * rsync LFS data directly from /volume/docker/gitea/git/lfs | |
| # * No need for rotation since all files are immutable |
This guide uses the domain your-domain.tld and its www. prefixed version.
It starts the rocket application on 127.0.0.1:1337 and as the user www-data. The proxy listens on port 80 and 443 though.
If you need other values, update them accordingly in your nginx and systemd configs.
TL;DR
Install Postgres 9.6, and then:
sudo pg_dropcluster 9.6 main --stop
sudo pg_upgradecluster 9.5 main
sudo pg_dropcluster 9.5 main| { | |
| "presets": ["es2015", "react", "babel-preset-stage-0"] | |
| } |
| // Contains support for: SASS/SCSS, concatenation, and minification for JS and CSS | |
| var gulp = require('gulp'); | |
| var sass = require('gulp-ruby-sass'); | |
| var concat = require('gulp-concat'); | |
| var compress = require('gulp-yuicompressor'); | |