Wykres commitów

424 Commity (7d94dc6cf5d689fc80240e12712dd01476780ddc)

Autor SHA1 Wiadomość Data
Chris McCormick 60da61456e piku-bootstrap subcommand to install piku cli. (#121)
* piku-bootstrap subcommand to install piku cli.

Fixes #120

* Documenting new simpler install methods.
2019-11-13 17:57:34 +00:00
Chris McCormick 5d79013e05 Fix detection order of app type + deps. (#123)
This is an alternative fix to #111.
2019-11-13 17:57:04 +00:00
Chris McCormick 953b299ab1 Include nodeenv installed binaries. (#117) 2019-11-13 17:56:07 +00:00
Chris McCormick 1d8fac8583 Documented AUTO_RESTART var. (#119) 2019-11-13 17:55:16 +00:00
Chris McCormick 4046f9ac77 Documentation improvements. (#122) 2019-11-13 17:54:41 +00:00
Chris McCormick 69976bc7dc Warn if Ansible fails to install (#115)
* Check git is available or warn user. Fixes #112.

* Warn if Ansible fails to install. Fixes #113
2019-10-24 08:11:28 +01:00
Chris McCormick fabe77f264 Check git is available or warn user. Fixes #112. (#114) 2019-10-24 08:11:12 +01:00
Chris McCormick e7654ff930 Removing java-spark-app as per #99. (#110) 2019-10-06 19:45:25 +01:00
John Simiyu 817f912994 Enhancement closes #101 (#109) 2019-10-06 13:54:23 +01:00
Chris McCormick 21003f0fc3 Clojure integration (#108)
* Clojure Support

Conflicts:
	piku.py

* Tweaks to get Clojure deploy working.

 * Allows user to install lein binary into ~/bin
 * Simplifies Clojure re-build sequence

* Bootstrap playbooks for lein + Java.
2019-09-29 18:43:07 +01:00
Chris McCormick b9f6a37a09 Remove git-hooks from cli help. (#107)
Fixes #105.
2019-09-29 09:56:03 +01:00
Chris McCormick 137d870570 Fix letsencrypt renewal on HTTPS only sites. (#106) 2019-09-27 07:29:21 +01:00
John Simiyu d74bbe2249 Fixed Java Deployment (#104)
* Fixed Java Deployment

* Update #Removing previous builds
2019-09-15 09:35:45 +01:00
Chris McCormick a24488531b Fix typo breaking wsgi deploys. #102 (#103) 2019-09-09 15:40:07 +01:00
Chris McCormick ed4334e214 Forgot deploy_identity in generic release. #98 (#100) 2019-09-06 18:02:41 +01:00
Chris McCormick 483ecd885c Allow purely shell based deploys. (#98)
This PR modifies Piku such that if the user has a `web` and a `release`
worker defined it will allow the deploy to continue. This is useful in
cases where the user wants to run some binary server.

An example is the gitea deploy. Without this change it needs a
superfluous requirements.txt file exists before it will deploy. If/when
this is merged I'll update the deploy-gitea repo to remove that
superfluous file.

Another fun thing this would allow is tiny web services written with
bash/netcat etc.
2019-08-31 09:38:14 +01:00
Chris McCormick c00e130b87 Enable gh-pages style static site deployment. (#97)
* Enable gh-pages style static site deployment.

As per #42 this PR allows the user to do static site deployments using
Piku which work very similarly to gh-pages. In the Procfile the user
defines a worker called 'static' with the path to the root of the files
to be served. An example app can be found here:
https://github.com/chr15m/piku-static-site

* Documentation.
2019-08-30 11:07:55 +01:00
Chris McCormick 89413a6f81 Allow users to get direct shell access in apps. (#96)
This commit adds a small change to the `piku` script to pass through SSH
command flags, and documentation explaining how to use this to obtain a
remote shell on the piku server inside a running app folder.
2019-08-30 08:15:27 +01:00
Rui Carmo 5e03d70046 removed unused import - fixes #94 2019-08-26 13:02:18 +01:00
Rui Carmo 6b336e7d92 changed urls in docs and scripts 2019-08-26 12:23:34 +01:00
Rui Carmo e52cffb377 split nodejs sample into separate repo 2019-08-22 22:27:41 +01:00
Rui Carmo ea5ef420ad split django example to separate repo 2019-08-22 22:15:10 +01:00
Rui Carmo ba3fbd04fd split first python sample to separate repo 2019-08-22 22:07:34 +01:00
Chris McCormick 7d4e7e2cb7 Env UWSGI_INCLUDE_FILE to include custom uwsgi. (#93) 2019-08-22 17:40:00 +01:00
Chris McCormick 57a71474bd Fixed broken logic detecting wsgi workers. (#89)
* Fixed broken logic detecting wsgi workers. #88

* Fix logic errors in jwsgi detection. #88
2019-08-18 09:36:05 +01:00
dependabot[bot] 0d605dbe7b Bump django from 2.1.9 to 2.1.11 in /examples/python-postgres (#87)
Bumps [django](https://github.com/django/django) from 2.1.9 to 2.1.11.
- [Release notes](https://github.com/django/django/releases)
- [Commits](https://github.com/django/django/compare/2.1.9...2.1.11)

Signed-off-by: dependabot[bot] <support@github.com>
2019-08-12 07:17:03 +01:00
Chris McCormick 18dcad3d76 Python/Django + Postgres database example (#86)
* Remove --pi hack in favour of pi@HOST.

* Properly deploy systemd startup in bootstrap.

Fixes #71.

* piku-bootstrap using separate ansible playbooks.

* Prefer built-in playbooks in piku-bootstrap.

* Document new piku-bootstrap options.

* Doc piku-bootstrap built-in playbooks usage.

* Move 'using' doc to top.

* Typos + doc fixes in piku-bootstrap.

* Improved built-in playbook detection.

* Added node playbook.

* Documentation tweaks.

* Documentation tweaks.

* Built-in playbook for installing postgres.

* Example Python/Django + Postgres app.
2019-08-12 07:01:27 +01:00
Chris McCormick e321982564 Piku bootstrap extra playbooks (#83)
* Remove --pi hack in favour of pi@HOST.

* Properly deploy systemd startup in bootstrap.

Fixes #71.

* piku-bootstrap using separate ansible playbooks.

* Prefer built-in playbooks in piku-bootstrap.

* Document new piku-bootstrap options.

* Doc piku-bootstrap built-in playbooks usage.

* Move 'using' doc to top.

* Typos + doc fixes in piku-bootstrap.

* Improved built-in playbook detection.

* Added node playbook.

* Documentation tweaks.

* Documentation tweaks.
2019-08-12 07:00:27 +01:00
Chris McCormick 3866de6e17 Usability + nitpick tweaks (#82)
* rm editor conf - appears to be comitted in error.

* Rename to java-spark-app to help users.
2019-08-12 06:59:02 +01:00
Chris McCormick 7a73cd8e3e Stop nginx confs from leaking into LIVE_ENV. #84 (#85) 2019-08-12 06:56:59 +01:00
John Simiyu bfc4f8ce32 Java Support (#81)
* Added support for Java Deployment with Maven

* Added support for Java Deployment with Maven

* @matrixjnr/feature:java support

* @matrixjnr/feature:java support
2019-08-10 22:00:40 +01:00
dependabot[bot] 61a5648214 Bump django from 2.1.10 to 2.1.11 in /examples/python-django (#80)
Bumps [django](https://github.com/django/django) from 2.1.10 to 2.1.11.
- [Release notes](https://github.com/django/django/releases)
- [Commits](https://github.com/django/django/compare/2.1.10...2.1.11)

Signed-off-by: dependabot[bot] <support@github.com>
2019-08-06 08:06:27 +01:00
Chris McCormick 90d20dac28 Include a custom nginx config fragment with NGINX_INCLUDE_FILE (#79)
* Refactor common config out of nginx templates.

* A way to inject custom nginx directives.

Setting the ENV variable `NGINX_INCLUDE_FILE` allows the user to specify a
file, relative to the app folder, which will be inserted into the nginx
server config.

This is useful for e.g. overriding a variable. For example to allow
uploads larger than 1Mb the user could create a file called `nginx.conf`
in their app repo containing: `client_max_body_size 8M;` and then set
`NGINX_INCLUDE_FILE=nginx.conf` in the ENV file.

This builds on #77 so that should be merged first.
2019-08-05 09:10:42 +01:00
Chris McCormick dca9342b2e Block access to .git folders (allow if NGINX_ALLOW_GIT_FOLDERS is set) (#78)
* Refactor common config out of nginx templates.

* Block access to .git folders with ENV to allow.

See #76
2019-08-05 09:09:22 +01:00
Chris McCormick afac14862f Refactor common config out of nginx templates. (#77) 2019-08-05 09:09:11 +01:00
Chris McCormick 52f4a1d634 Fix `git remote show` (shim git-upload-pack). (#74) 2019-08-05 09:08:59 +01:00
Chris McCormick 9876ecc2e0 Fix to upgrade node version correctly. (#73)
This patch changes piku to check the installed node version and leave it
if correct.

It also separates the nodeenv install and the npm install steps.

It will also warn the user if they try to change the node version in a
running app, and tells them to stop and then deploy the app again in
order to update the node version.

Fixes #70.
2019-08-05 09:08:48 +01:00
Chris McCormick 29cff3a819 Properly deploy systemd startup in bootstrap. (#72)
Fixes #71.
2019-08-05 09:08:36 +01:00
dWiGhT a5efdf89b5 improvement: allow newlines in ENV files (#69) 2019-08-05 09:08:24 +01:00
Chris McCormick 8a45c1af85 Remove --pi hack in favour of pi@HOST. (#68) 2019-08-05 09:08:10 +01:00
Chris McCormick 85d8be87eb Support pushes to non-master branches. (#75) 2019-08-05 09:07:47 +01:00
Chris McCormick 3778088da7 Don't mangle stdout with header. (#67)
This fix allows you to usefully pipe things from the output of 'piku run' into other scripts.
For example you might pipe a request log into goaccess for analysis.
2019-07-22 13:53:24 +01:00
Rui Carmo b920c85c08
Update and rename raspbian-9.4-stretch.md to raspbian-9.4-stretch-10-buster.md 2019-07-21 16:22:44 +01:00
Rui Carmo cbc8211702
Update README.md 2019-07-21 15:37:55 +01:00
Chris McCormick fc0abee262 If nginx config test fails remove app nginx conf. (#62) 2019-07-14 17:12:43 +01:00
Rui Carmo 9ba6b5828d
Update README.md 2019-07-14 17:08:58 +01:00
Chris McCormick 6556706e4a Documentation and readme updates (#59)
* Updated README with first-timers in mind.

This patch adds information about how to use the  script. It also
re-orders the information in the README so that the most pertinent
information for somebody using it for the first time is at the top.

* Logo proposition.

* Possibly punchier tag line.

* Tagline spacing tweak.

* README fixes.

* Added a note about the examples folder.

* Incorporated @dwightmulcahy suggestion.
2019-07-13 16:30:25 +01:00
Chris McCormick dce587c053 Node improvements and versioning (#58)
* Fix node path insert to not clobber env.

* Tighter check on python venv for uwsgi conf.

* Install NODE_VERSION if nodeenv on PATH.

* Document NODE_VERSION setting.
2019-07-13 16:29:34 +01:00
dependabot[bot] 1b3e471342 Bump django from 2.1.9 to 2.1.10 in /examples/python-django (#57)
Bumps [django](https://github.com/django/django) from 2.1.9 to 2.1.10.
- [Release notes](https://github.com/django/django/releases)
- [Commits](https://github.com/django/django/compare/2.1.9...2.1.10)

Signed-off-by: dependabot[bot] <support@github.com>
2019-07-09 11:16:11 +01:00
Chris McCormick 38aae8587b Added example for running wisp app. (#55) 2019-07-07 12:07:49 +01:00