kopia lustrzana https://github.com/piku/piku
changed urls in docs and scripts
rodzic
e52cffb377
commit
6b336e7d92
|
@ -32,7 +32,7 @@ To use `piku` you need a VPS, Raspberry Pi, or other server bootstrapped with `p
|
|||
Once you've got a fresh server, download the [piku-bootstrap](./piku-bootstrap) shell script onto your local machine and run it:
|
||||
|
||||
```shell
|
||||
curl https://raw.githubusercontent.com/rcarmo/piku/master/piku-bootstrap > piku-bootstrap && chmod 755 piku-bootstrap
|
||||
curl https://raw.githubusercontent.com/piku/piku/master/piku-bootstrap > piku-bootstrap && chmod 755 piku-bootstrap
|
||||
./piku-bootstrap
|
||||
```
|
||||
|
||||
|
@ -53,7 +53,7 @@ See below for instructions on [installing other custom dependencies](#installing
|
|||
To make life easier you can also download the [piku](./piku) helper shell script and install it on your local.
|
||||
|
||||
```shell
|
||||
curl https://raw.githubusercontent.com/rcarmo/piku/master/piku > piku && chmod 755 piku
|
||||
curl https://raw.githubusercontent.com/piku/piku/master/piku > piku && chmod 755 piku
|
||||
```
|
||||
|
||||
This shell script makes working with `piku` remotes a bit simpler. If you have a git remote called `piku` in the current folder it will infer the remote server and app name and insert those into the remote piku commands. This allows you do execute commands like the following on your running remote app:
|
||||
|
|
|
@ -57,7 +57,7 @@ sudo reboot
|
|||
|
||||
(We assume you know about ssh keys and have one "at hand", you'll need to copy it)
|
||||
|
||||
Clone the [piku repo](https://github.com/rcarmo/piku) somewhere and copy files to your Raspberry Pi
|
||||
Clone the [piku repo](https://github.com/piku/piku) somewhere and copy files to your Raspberry Pi
|
||||
|
||||
```bash
|
||||
# as yourself in your desktop/laptop computer
|
||||
|
|
|
@ -12,10 +12,10 @@ sudo adduser --disabled-password --gecos 'PaaS access' --ingroup www-data piku
|
|||
|
||||
# move to /tmp and grab our distribution files
|
||||
cd /tmp
|
||||
wget https://raw.githubusercontent.com/rcarmo/piku/master/piku.py
|
||||
wget https://raw.githubusercontent.com/rcarmo/piku/master/incron.dist
|
||||
wget https://raw.githubusercontent.com/rcarmo/piku/master/nginx.default.dist
|
||||
wget https://raw.githubusercontent.com/rcarmo/piku/master/uwsgi-piku.service
|
||||
wget https://raw.githubusercontent.com/piku/piku/master/piku.py
|
||||
wget https://raw.githubusercontent.com/piku/piku/master/incron.dist
|
||||
wget https://raw.githubusercontent.com/piku/piku/master/nginx.default.dist
|
||||
wget https://raw.githubusercontent.com/piku/piku/master/uwsgi-piku.service
|
||||
# Set up nginx to pick up our config files
|
||||
sudo cp /tmp/nginx.default.dist /etc/nginx/sites-available/default
|
||||
# Set up incron to reload nginx upon config changes
|
||||
|
|
|
@ -58,7 +58,7 @@ You will have to copy your ssh public key to the raspberry pi from your main sys
|
|||
# copy your public key to /tmp (I'm assuming it's the first entry in authorized_keys)
|
||||
head -1 ~/.ssh/authorized_keys > /tmp/pubkey
|
||||
# install piku and have it set up SSH keys and default files
|
||||
sudo su - $PAAS_USERNAME -c "wget https://raw.githubusercontent.com/rcarmo/piku/master/piku.py && python3 ~/piku.py setup && python3 ~/piku.py setup:ssh /tmp/pubkey"
|
||||
sudo su - $PAAS_USERNAME -c "wget https://raw.githubusercontent.com/piku/piku/master/piku.py && python3 ~/piku.py setup && python3 ~/piku.py setup:ssh /tmp/pubkey"
|
||||
rm /tmp/pubkey
|
||||
```
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ This user _is not supposed to login to your system_. Instead, you'll interact wi
|
|||
# copy your public key to /tmp (I'm assuming it's the first entry in authorized_keys)
|
||||
head -1 ~/.ssh/authorized_keys > /tmp/pubkey
|
||||
# install piku and have it set up SSH keys and default files
|
||||
sudo su - $PAAS_USERNAME -c "wget https://raw.githubusercontent.com/rcarmo/piku/master/piku.py && python3 ~/piku.py setup && python3 ~/piku.py setup:ssh /tmp/pubkey"
|
||||
sudo su - $PAAS_USERNAME -c "wget https://raw.githubusercontent.com/piku/piku/master/piku.py && python3 ~/piku.py setup && python3 ~/piku.py setup:ssh /tmp/pubkey"
|
||||
rm /tmp/pubkey
|
||||
```
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ main() {
|
|||
# ensure we have the piku repo checked out
|
||||
if [ ! -d "${REPO}" ]; then
|
||||
echo " #> Piku repo not found. Installing it into ${REPO}."
|
||||
git clone https://github.com/rcarmo/piku "${REPO}"
|
||||
git clone https://github.com/piku/piku "${REPO}"
|
||||
fi
|
||||
|
||||
# ensure ansible
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
|
||||
- name: Install uwsgi dist script
|
||||
get_url:
|
||||
url: https://raw.githubusercontent.com/rcarmo/piku/master/uwsgi-piku.dist
|
||||
url: https://raw.githubusercontent.com/piku/piku/master/uwsgi-piku.dist
|
||||
dest: /etc/init.d/uwsgi-piku
|
||||
mode: 0700
|
||||
when: packages_installed is changed
|
||||
|
@ -57,7 +57,7 @@
|
|||
|
||||
- name: Install uwsgi-piku systemd script
|
||||
get_url:
|
||||
url: https://raw.githubusercontent.com/rcarmo/piku/master/uwsgi-piku.service
|
||||
url: https://raw.githubusercontent.com/piku/piku/master/uwsgi-piku.service
|
||||
dest: /etc/systemd/system/uwsgi-piku.service
|
||||
mode: 0600
|
||||
when: packages_installed is changed
|
||||
|
@ -95,7 +95,7 @@
|
|||
|
||||
- name: Fetch piku.py script
|
||||
get_url:
|
||||
url: https://raw.githubusercontent.com/rcarmo/piku/master/piku.py
|
||||
url: https://raw.githubusercontent.com/piku/piku/master/piku.py
|
||||
dest: ~/piku.py
|
||||
mode: 0700
|
||||
|
||||
|
@ -162,7 +162,7 @@
|
|||
|
||||
- name: Get nginx default config
|
||||
get_url:
|
||||
url: https://raw.githubusercontent.com/rcarmo/piku/master/nginx.default.dist
|
||||
url: https://raw.githubusercontent.com/piku/piku/master/nginx.default.dist
|
||||
dest: /etc/nginx/sites-available/default
|
||||
force: yes
|
||||
register: nginx_config_installed
|
||||
|
@ -175,7 +175,7 @@
|
|||
|
||||
- name: Get incron config
|
||||
get_url:
|
||||
url: https://raw.githubusercontent.com/rcarmo/piku/master/incron.dist
|
||||
url: https://raw.githubusercontent.com/piku/piku/master/incron.dist
|
||||
dest: /etc/incron.d/piku
|
||||
register: incron_config_installed
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue