Site updated at 2015-12-07 17:08:54 UTC

This commit is contained in:
Fabian Affolter 2015-12-07 18:08:54 +01:00
parent 16676102f3
commit 15ff625907

View File

@ -10,35 +10,46 @@ This is the source for the [Home Assistant](https://github.com/balloob/home-assi
| `rake generate` | Generate new version of the site
| `rake deploy` | Deploy a new version of the site
## Setup local environment
## Setup local environment for the preview
_You need to have Ruby installed._
```bash
git clone --recursive https://github.com/balloob/home-assistant.io.git
cd home-assistant.io
bundle
rake preview
$ git clone --recursive https://github.com/balloob/home-assistant.io.git
$ cd home-assistant.io
$ bundle
$ rake preview
```
## Steps for the deployment of the site
All developers with write access to the repositories are able to deploy the website-
```bash
$ cd _deploy
$ git pull
$ cd ..
$ rake generate && rake deploy
$
```
### Preparation on Fedora and CentOS
On Fedora 22 or CentOS 7.1.1503 Ruby is not available by default. Please take the notes here as a little guide for the Ruby installation process.
```bash
curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -
curl -L get.rvm.io | bash -s stable
source ~/.profile
rvm requirements
rvm install ruby-2.2.2
rvm use ruby-2.2.2 --default
ruby -v
$ curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -
$ curl -L get.rvm.io | bash -s stable
$ source ~/.profile
$ rvm requirements
$ rvm install ruby-2.2.2
$ rvm use ruby-2.2.2 --default
$ ruby -v
```
The last command will give you something like this `ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]`. Then install `bundler`.
```bash
gem install bundler
$ gem install bundler
```
Now please follow the instruction above.