readme.md 901 Bytes
Newer Older
Aral Balkan's avatar
Aral Balkan committed
1
2
# Ind.ie Labs

3
[Ind.ie Labs](https://ind.ie/labs) is where we host our projects for developers. This is the source for the site itself.
4
5
6

## Install

7
8
9
```bash
./install
```
10
11
12

## Develop

13
14
15
```bash
./dev
```
16
17
18

## Deploy

19
20
21
```bash
./deploy
```
22

23
24
## Adding a new user to the server

25
26
27
```bash
cat /path/to/public_key | ssh root@yourdokkuinstance "sudo sshcommand acl-add dokku [description]"
```
28

29
## Restarting Dokku on reboot (Ubuntu)
Aral Balkan's avatar
Aral Balkan committed
30

31
32
33
34
35
36
37
38
39
40
41
42
Add the following file (call it, e.g., dokku-redeploy.conf) to `/etc/init`:

```bash
description "Dokku app redeploy service"

start on filesystem and started docker

script
  sleep 2 # give docker some time
  sudo -i -u dokku /usr/local/bin/dokku ps:restartall
end script 
```
Aral Balkan's avatar
Aral Balkan committed
43

44
45
## Updating this readme file

Aral Balkan's avatar
Aral Balkan committed
46
Please update the markdown file and generate the HTML file before committing (the HTML file is displayed by the installation script to get new users oriented quickly.)