Wykres commitów

763 Commity (python-3.8-tests)

Autor SHA1 Wiadomość Data
Chris McCormick 9c913a8d5f Example Django app deployment with Piku. (#43)
This change requires PRs #38 #39 #41 to work properly.
2019-06-23 15:50:24 +01:00
Chris McCormick 8ca63c60de Release worker: provide full env + remove worker. (#39)
* Release worker: provide full env + remove worker.

This change improves the release task pseudo-worker.

 * Provides the full environment (both app env and config env) to the
   release task.

 * Uses a non-zero return value to bail early if release
   phase fails.

* Make ENV_ROOT (venv) accessible to release scripts.
2019-06-23 15:48:47 +01:00
Chris McCormick a9b58917b4 RFC: letsencrypt SSL certificate support (#38)
* Add Let's Encrypt SSL cert support.

This patch has piku use the acme.sh script to request and maintain Let's
Encrypt SSL certs rather than generate self-signed certs.  For it to
work you must install acme.sh as the user piku.  Installation
instructions here: https://github.com/Neilpang/acme.sh#1-how-to-install
The next commit updates piku-bootstrap to install acme.sh by default.

If acme.sh is not installed piku continues to default to a self-signed
certificate.

* Install acme.sh SSL cert wrangler in bootstrap.

The previous commit contains details about usage.
2019-06-23 15:47:58 +01:00
Chris McCormick 0a1dc6cf13 Fix static paths by switching to expandvars(). (#41)
This fixes #40.
2019-06-23 15:44:57 +01:00
Chris McCormick 2e3c56c891 piku-bootstrap script for provisioning a server with piku.py (#23)
* Bootstrap script initial working version.

* Bootstrap: more verbose messaging.

* Bootstrap: working up to piku over SSH.

* Bootstrap: full bootstrap minus nginx.

* Bootstrap: ensure py2 for Ansible.

* Bootstrap: more deps.

* Bootstrap: piku user Ansible tmp to avoid err.

* Bootstrap: local venv source in ~/.piku-bootstrap

* Bootstrap: nginx + incron install.

* Bootstrap: self-install logging and less verbose.

* Bootstrap: special permissions for --pi mode.

* Improved usage + self-install text.
2019-06-20 15:05:45 +01:00
Chris McCormick e424f3d7b5 Alias NGINX_HTTPS_ONLY and add doc. (#28) 2019-06-20 15:05:18 +01:00
Chris McCormick bccf3814a8 Warning should be in yellow. (#32) 2019-06-20 15:03:57 +01:00
Chris McCormick fb39bd8974 User can specify release command in Procfile. (#33)
Allows the user to run arbitrary release commands (such as running Django collectstatic and/or migrations). The 'release' command runs before workers are spawned.
Kind of works like this: https://devcenter.heroku.com/articles/release-phase
2019-06-20 15:03:16 +01:00
Chris McCormick 1d85c5adba Option to auto-restart after push. (#34)
This runs the 'restart' command after pushing if AUTO_RESTART is set in ENV. This addresses the concern raised in #27 and allows the user to optionally push-and-forget similar to other PaaS systems.
2019-06-20 15:02:11 +01:00
Chris McCormick 461af9f174 Allow `git push -f` to piku. (#35)
Before this change if you tried to `git push -f` it broke the update.
Git would output an error saying branches have diverged.
With this change piku basically assumes whatever you pushed into
origin/master is the thing you actually want to deploy, and uses that.
(even if it's a commit --amend or a reset to some previous point in
history etc.)
2019-06-20 15:01:37 +01:00
Chris McCormick 0ef930f57d Check out git submodules. (#36)
Git submodules can be a convenient way of including some 3rd party dependency/repo in your app. With this change piku automatically checks out any submodules included in the repository.
2019-06-20 14:59:38 +01:00
Chris McCormick c8328a3d93 Nit: typo. (#29) 2019-05-26 13:54:28 +01:00
Rui Carmo a14519e8e3
Update README.md 2019-05-22 19:26:15 +01:00
Rui Carmo cad8f4744b URL 2019-05-22 19:22:38 +01:00
Rui Carmo 190dc00019 tidy 2019-05-22 19:19:32 +01:00
Rui Carmo 9253b21e0f SVG demo 2019-05-22 19:19:08 +01:00
Rui Carmo 8350a6b883
Added demo 2019-05-22 19:11:10 +01:00
Rui Carmo 601bfa32f8
Update README.md 2019-05-22 18:52:42 +01:00
Rui Carmo 8307dafa86
Missed a spot 2019-05-22 13:37:18 +01:00
Rui Carmo 4e3653110c
Update README.md 2019-05-22 13:29:06 +01:00
Rui Carmo bc78418d26
Update piku.py 2019-05-22 13:27:42 +01:00
Rui Carmo d339966247
Shorter descriptions
As per roadmap, this will eventually be revisited for better help and documentation
2019-05-22 13:24:30 +01:00
Rui Carmo b17e5af4ea
Shorter help 2019-05-22 13:20:10 +01:00
Rui Carmo 99a176d9a1
Fixes #21
Also adds a few more examples.
2019-05-22 13:13:30 +01:00
Rui Carmo be0bd232f6 added clock worker 2019-05-21 22:31:19 +01:00
Rui Carmo 3f80e00aaa confirms that #20 actually works and tests #19 2019-05-21 22:27:44 +01:00
Rui Carmo 99724bd890 Merge branch 'master' of github.com:rcarmo/piku 2019-05-21 21:21:14 +01:00
Rui Carmo 526f6284dd
Update README.md 2019-04-17 13:13:08 +01:00
Rui Carmo f10f4c3835 pylint 2018-12-23 15:32:46 +00:00
Rui Carmo 79f0e62d88 pylint 2018-12-23 15:31:55 +00:00
Rui Carmo c9c494a9b5 whitespace 2018-12-23 15:19:43 +00:00
Rui Carmo 32e2b332db README 2018-12-23 15:19:32 +00:00
Rui Carmo 2a91b4a162 multiple fixes 2018-12-23 15:07:52 +00:00
Rui Carmo 1d2f8daf0a more format strings 2018-12-23 14:19:52 +00:00
Rui Carmo ffd22e0e86 more format strings 2018-12-23 14:14:54 +00:00
Rui Carmo 3bc5d176e0 cleanups 2018-12-23 14:03:08 +00:00
Rui Carmo 528ba8867f cleanups 2018-12-23 14:01:25 +00:00
Rui Carmo 1da7433328 new 3.x format strings, nginx IP addressing 2018-12-23 13:59:48 +00:00
Rui Carmo 055b27d6af pylint on wrapped funs 2018-12-23 12:21:41 +00:00
Rui Carmo 58276bfba5 Minor doc tweaks 2018-11-26 07:53:20 +00:00
dWiGhT 1000dfe459 add specifics to raspbian install docs (#17)
Thanks!!!!!!!
2018-09-19 23:31:08 +01:00
Rui Carmo a634ab90ac
Expand vars in sub-template 2018-09-14 10:04:17 +01:00
Rui Carmo 4e4b023282 typo 2018-08-29 16:54:10 +01:00
Rui Carmo 007959c821 HTTPS_ONLY option 2018-08-29 16:51:04 +01:00
Rui Carmo d9ac036fb3
Update README.md 2018-08-23 13:46:52 +01:00
Rui Carmo ff31da10d0
Remove uWSGI settings when not using 'wsgi' worker 2018-08-22 19:41:31 +01:00
Rui Carmo b10e503118
Update logs and fix handling of plain 'web' workers 2018-08-22 19:18:57 +01:00
Rui Carmo 6fe8f30aab Added more variables 2018-07-24 21:20:16 +01:00
Rui Carmo b814e4e85a Updated docs, filed away old versions 2018-07-24 21:12:48 +01:00
Rui Carmo 05acd95b66 Cleanups 2018-07-24 21:12:35 +01:00