Skip to content

Commit

Permalink
merge upstream changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kristofkeppens committed Feb 24, 2015
2 parents cf45334 + 137e226 commit 5c1b64a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@
/vendor/
/bin/
/composer.phar
/node_modules
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,32 +43,34 @@ Dependencies
sudo apt-get install php5-curl
sudo apt-get install mongodb
sudo apt-get install npm
sudo npm install uglifycss -g
sudo npm install uglify-js -g

Get the code

git clone [email protected]:brunogoossens/BBB-Load-Balancer.git /var/www/bbb-load-balancer
cd /var/www/bbb-load-balancer

Get NPM packages

$ npm install

Edit the config file

cp app/config/parameters.yml.dist app/config/parameters.yml
$ cp app/config/parameters.yml.dist app/config/parameters.yml

Change the bbb.salt value inside the file. The salt must be the same on all BBB servers
You can also change other values if you like.

Get composer

curl -s https://getcomposer.org/installer | php
$ curl -s https://getcomposer.org/installer | php

Install packages with composer

composer install

Start server (without apache or nginx)

app/console server:run --env=prod
$ app/console server:run --env=prod

If you want to configure an other server like apache or nginx, you can follow [this](http://symfony.com/doc/current/cookbook/configuration/web_server_configuration.html) guide.

Expand Down
4 changes: 2 additions & 2 deletions app/config/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ assetic:
filters:
cssrewrite: ~
uglifyjs2:
bin: /usr/bin/uglifyjs
bin: node_modules/.bin/uglifyjs
uglifycss:
bin: /usr/bin/uglifycss
bin: node_modules/.bin/uglifycss
#closure:
# jar: "%kernel.root_dir%/Resources/java/compiler.jar"
#yui_css:
Expand Down
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "BBBLoadBalancer.loc",
"dependencies": {
"uglify-js": "^2.4.16",
"uglifycss": "0.0.11"
}
}

0 comments on commit 5c1b64a

Please sign in to comment.