Ind.ie is now Small Technology Foundation.
Commit d9d9d3ff authored by Aral Balkan's avatar Aral Balkan

Updated the readme to fix formatting issues and add info on how to restart...

Updated the readme to fix formatting issues and add info on how to restart Dokku services on restart.
parent b09275b5
......@@ -1017,10 +1017,22 @@ body .markdown-body
</style><title>readme</title></head><body><article class="markdown-body"><h1 id="indie-labs"><a name="user-content-indie-labs" href="#indie-labs" class="headeranchor-link" aria-hidden="true"><span class="headeranchor"></span></a>Ind.ie Labs</h1>
<p>Ind.ie Labs is where we host our projects for developers. </p>
<h2 id="install"><a name="user-content-install" href="#install" class="headeranchor-link" aria-hidden="true"><span class="headeranchor"></span></a>Install</h2>
<p><code>./install</code></p>
<pre><code class="bash">./install
</code></pre>
<h2 id="develop"><a name="user-content-develop" href="#develop" class="headeranchor-link" aria-hidden="true"><span class="headeranchor"></span></a>Develop</h2>
<p><code>./dev</code></p>
<pre><code class="bash">./dev
</code></pre>
<h2 id="deploy"><a name="user-content-deploy" href="#deploy" class="headeranchor-link" aria-hidden="true"><span class="headeranchor"></span></a>Deploy</h2>
<p><code>./deploy</code></p>
<pre><code class="bash">./deploy
</code></pre>
<h2 id="adding-a-new-user-to-the-server"><a name="user-content-adding-a-new-user-to-the-server" href="#adding-a-new-user-to-the-server" class="headeranchor-link" aria-hidden="true"><span class="headeranchor"></span></a>Adding a new user to the server</h2>
<pre><code class="bash">cat /path/to/public_key | ssh root@yourdokkuinstance &quot;sudo sshcommand acl-add dokku [description]&quot;
</code></pre>
<h2 id="502-error-workaround"><a name="user-content-502-error-workaround" href="#502-error-workaround" class="headeranchor-link" aria-hidden="true"><span class="headeranchor"></span></a>502 Error workaround</h2>
<p>If you get a 502 error after a reboot, the current workaround is to redeploy the app. Nowhere near a great solution. FIX!</p>
<h2 id="updating-this-readme-file"><a name="user-content-updating-this-readme-file" href="#updating-this-readme-file" class="headeranchor-link" aria-hidden="true"><span class="headeranchor"></span></a>Updating this readme file</h2>
<p>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.)</p></article></body></html>
\ No newline at end of file
# Ind.ie Labs
Ind.ie Labs is where we host our projects for developers.
[Ind.ie Labs](https://ind.ie/labs) is where we host our projects for developers. This is the source for the site itself.
## Install
```./install```
```bash
./install
```
## Develop
```./dev```
```bash
./dev
```
## Deploy
```./deploy```
```bash
./deploy
```
## Adding a new user to the server
cat /path/to/public_key | ssh root@yourdokkuinstance "sudo sshcommand acl-add dokku [description]"
```bash
cat /path/to/public_key | ssh root@yourdokkuinstance "sudo sshcommand acl-add dokku [description]"
```
## 502 Error workaround
## Restarting Dokku on reboot (Ubuntu)
If you get a 502 error after a reboot, the current workaround is to redeploy the app. Nowhere near a great solution. FIX!
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
```
## Updating this readme file
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment