-
Notifications
You must be signed in to change notification settings - Fork 1
updating documentation not using Vagrant #7
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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 | ||
|
|
||
|
|
@@ -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" | ||
| ``` | ||
|
|
||
| Let's start with a simple vagrant file: | ||
|
|
||
| ``` | ||
|
|
@@ -66,10 +76,14 @@ Connect to the virtual machine: | |
| vagrant ssh | ||
| ``` | ||
|
|
||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 | ||
| ``` | ||
|
|
@@ -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 | ||
| ``` | ||
|
|
@@ -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 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo, it's ansible