Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions docs/deployment-dokku.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,28 @@ title: Dokku Deployment
>These docs assume you already have a virtual machine with [Dokku](http://dokku.viewdocs.io/dokku/) running on it, and can SSH into the VM. DNS should be set up as well, but isn't required for bare minimum functionality.
>
>If you need a VM, check out [DigitalOcean](https://m.do.co/c/b5ee103e23c3) or [Linode](https://www.linode.com/?r=e90a6fb2a6999fb4ec7b60b1add3e288f97954bf) and the [Dokku docs](http://dokku.viewdocs.io/dokku/) to get started.
>
>**Student Developer?** The [GitHub Student Developer Pack](https://education.github.com/pack?sort=popularity&tag=Cloud) has several discounts for cloud hosting, Ruby tutorials, and more!

## Setting up a new deployment

Below are steps & notes to deploy HackathonManager on Dokku. Need to update an existing deployment?
Below are steps to deploy a new HackathonManager instance on Dokku. To update an existing Dokku deployment, check out our [updating docs](updating-hm.html).

If you have any questions, please don't hesitate to reach out to the [codeRIT Engineering Team](mailto:[email protected])! This doc is very much a work in progress but we want to keep it as up to date as possible.

If you have any questions at all, please don't hesitate to reach out to the [codeRIT Engineering Team](mailto:[email protected])! This doc is very much a work in progress but we want to keep it as up to date as possible.
## Dokku Setup

## Dokku plugins
### Plugins

Currently used and required Dokku plugins (other than the defaults):

- [MySQL](https://github.com/dokku/dokku-mysql) (data storage)
- [Redis](https://github.com/dokku/dokku-redis) (background jobs + caching)
- [dokku-letsencrypt](https://github.com/dokku/dokku-letsencrypt) (Optional: free, automated SSL certificates)

### Dokku Setup Steps
### Setup Steps

**We'll be using `hm` as the app name in these steps,** as well as sharing the same `hm` name for both the app, database, and redis name. You're free to use another names.
**We'll be using `hm` as the app name in these steps,** as well as sharing the same `hm` name for both the app, database, and redis name. You're free to use other names.

```bash
dokku apps:create hm
Expand Down Expand Up @@ -177,4 +181,4 @@ In order to support groupdate, timezone tables must be created.

```bash
mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u $OPENSHIFT_MYSQL_DB_USERNAME -p mysql
```
```