Skip to content
Open
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
21 changes: 18 additions & 3 deletions docs/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@ You need a checkout of this repository on your machine.

Requirements:
- ansible 2.0+
- git

Optional whether using a virtual machine:

- vagrant
- a vagrant provider, *virtualbox* is the more hassle free
- git


## Rocket.Chat

Expand All @@ -25,6 +29,12 @@ From the dir containing the checkout of this repository:
ansible-galaxy install -r chatlab/ansible/requirements.yml -p chatlab/ansible/roles
```

If not using Vagrant, run this:

```
absible-playbook "chatlab/ansible/rocket_chat.yml"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

typo, it's ansible

```

Let's start with a simple vagrant file:

```
Expand Down Expand Up @@ -66,10 +76,14 @@ Connect to the virtual machine:
vagrant ssh
```


Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This empty lines should not be needed


From inside the virtual machine we are going to install all requirements.
Please note that *mysql-server* will require a password for the root user that you'll need later.

```
sudo add-apt-repository ppa:fkrull/deadsnakes

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The right fix would be to use python3 instead of python3.4, already done on another PR

sudo apt-get update
sudo apt install build-essential python3.4 python3.4-dev python-virtualenv libjpeg-dev libpq-dev libmysqlclient-dev git python2.7 mysql-server
sudo apt-get clean
```
Expand All @@ -94,7 +108,7 @@ Then we need to create a user that will run the *LabAdmin* application:

```
sudo useradd -M labadmin
sudo mkdir /var/www/labadmin
sudo mkdir -p /var/www/labadmin
sudo chown labadmin /var/www/labadmin
cd /var/www/labadmin
```
Expand Down Expand Up @@ -165,7 +179,8 @@ STATIC_URL = '/labadmin/static/'
LOGIN_URL = '/labadmin/accounts/login/'
```

You also need to update these settings dependings on your environment:
You also need to

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks like unwanted changes

these settings dependings on your environment:

```
# See https://docs.djangoproject.com/en/1.10/ref/settings/#databases
Expand Down