Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate (and attempt one last fixing) documentations around Heroku and Passenger #61

Merged
merged 1 commit into from
Feb 17, 2017
Merged
Show file tree
Hide file tree
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
34 changes: 18 additions & 16 deletions _docs/deployment/heroku.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
---
layout: documentation
title: Heroku
description: Add your description here
category: Deployment
order: 4.3
---

# Heroku

<div class="alert alert-danger" role="alert">
<strong>As of February 2017, this document is deprecated. It will not be maintained anymore and will soon be removed.</strong>
</div>

This document will explain how to install The Lounge on Heroku. If you want to learn about Heroku you should read their [documentation](https://devcenter.heroku.com/articles/getting-started-with-nodejs#introduction).

<div class="alert alert-warning" role="alert">
Expand All @@ -19,34 +22,33 @@ This document will explain how to install The Lounge on Heroku. If you want to l
</p>

<p>
When heroku kills The Lounge, you need to connect to servers and channels again from scratch.
In practice, you get no always-on functionality with an unpaid heroku account.
When Heroku kills The Lounge, you need to connect to servers and channels again from scratch.
In practice, you get no always-on functionality with an unpaid Heroku account.
</p>
</div>

Okay, let's get down to business:

### Step 1:

Begin by logging in with the [Heroku toolbelt](https://toolbelt.heroku.com/):

```
$ heroku login
heroku login
```

### Step 2:

Clone and run the `npm install`:
Clone the repository and install The Lounge from source:

```
$ git clone https://github.com/thelounge/lounge
$ cd lounge
$ npm install
git clone https://github.com/thelounge/lounge
cd lounge
npm install
NODE_ENV=production npm run build
```

### Step 3:

While standing in the `lounge/` directory, run:
In the `lounge/` directory, run:

```
heroku create
Expand All @@ -64,10 +66,10 @@ web: node index --private --home /app

_You can read more about Procfiles [here](https://devcenter.heroku.com/articles/procfile)._

To create users, stand in the `lounge/` directory and call this:
To create users, run the following in the `lounge/` directory:

```
$ ./index.js --home . add <username>
./index.js --home . add <username>
```

### Step 5:
Expand All @@ -77,12 +79,12 @@ Time to publish to Heroku!
If you've made any changes to the repository (like adding users or the Profile), don't forget to save the changes with `git`:

```
$ git add .
$ git commit -m "Added Heroku files"
git add .
git commit -m "Added Heroku files"
```

And with that done, lets go ahead and push to Heroku:

```
$ git push heroku
git push heroku
```
14 changes: 9 additions & 5 deletions _docs/deployment/passenger.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
---
layout: documentation
title: Passenger
description: Add your description here
category: Deployment
order: 4.4
---

# Passenger

<div class="alert alert-danger" role="alert">
<strong>As of February 2017, this document is deprecated. It will not be maintained anymore and will soon be removed.</strong>
</div>

This document will explain how to install The Lounge on Phusion Passenger. You can find out more about Passenger at [their website](https://www.phusionpassenger.com/).

### Step 1:
Expand All @@ -16,12 +19,13 @@ This document will explain how to install The Lounge on Phusion Passenger. You c

### Step 2:

Clone and run the `npm install`:
Clone the repository and install The Lounge from source:

```
$ git clone https://github.com/thelounge/lounge
$ cd lounge
$ npm install
git clone https://github.com/thelounge/lounge
cd lounge
npm install
NODE_ENV=production npm run build
```

### Step 3:
Expand Down
5 changes: 5 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,11 @@ pre code {
background-color: #fcf8e3;
border-color: #faebcc;
}
.alert-danger {
color: #a94442;
background-color: #f2dede;
border-color: #ebccd1;
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a simple copy-paste of Bootstrap defaults, just like previous definition (.alert-warning). I'm not planning on making this more religiously clean as other improvements of this will take over during doc improvements.

.alert p:last-child {
margin-bottom: 0;
}