Skip to main content

UNIX command-line tool for python line-based stream processing

Project description

Author: Pahaz Blinov

Repo: https://github.com/pahaz/git-receive/

git-receive is a UNIX command-line tool for wrapping git push/git pull command on a server side.

requirements: Python3

HOW-TO CREATE OWN STATIC SITE SAAS ?

You need a SAAS? Just create it! Lets start with bootstraping:

./bootstrap.sh
What does the command do?
  • install requirements: python3-pip, sshcommand, nginx, gitreceive

  • setup special user: static

  • setup sshcommand

  • setup nginx

Then you need to add your named ssh-key:

sshcommand acl-add static <USERNAME> <KEY_FILE>

or:

curl https://github.com/<GITHUB-USERNAME>.keys | sshcommand acl-add static <GITHUB-USERNAME>

Deploy your first site

Just clone one:

$ git clone https://github.com/pahaz/dokku-static-site.git test1.8iq.ru
Cloning into 'test1.8iq.ru'...
remote: Counting objects: 75, done.
remote: Compressing objects: 100% (50/50), done.
remote: Total 75 (delta 23), reused 73 (delta 21), pack-reused 0
Unpacking objects: 100% (75/75), done.

$ cd test1.8iq.ru

Then deploy it:

$ git push static@8iq.ru:test1.8iq.ru master
Counting objects: 75, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (71/71), done.
Writing objects: 100% (75/75), 152.88 KiB | 0 bytes/s, done.
Total 75 (delta 23), reused 0 (delta 0)
To 8iq.ru:test1.8iq.ru
 * [new branch]      master -> master

If you want to change templates and the push it to your github repository just change an origin:

$ git remote set-url origin https://github.com/USERNAME/OTHERREPOSITORY.git

Create your first extension

TODO: write it!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gitreceive-0.2.0.tar.gz (6.7 kB view details)

Uploaded Source

File details

Details for the file gitreceive-0.2.0.tar.gz.

File metadata

  • Download URL: gitreceive-0.2.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for gitreceive-0.2.0.tar.gz
Algorithm Hash digest
SHA256 67850f9fc5c0ed0f56ed6aae7d1c807707c5b09546049a6c6e8692cb7ec1e5d5
MD5 a0267c743b9171d52f3eae7386f4a5fb
BLAKE2b-256 3e2ce1558fd6f39e425e41f160cac949bf5f04fee3c016939398dd22a7edab8e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page