-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
brunogoossens
committed
Feb 24, 2015
1 parent
cd13ec5
commit 137e226
Showing
4 changed files
with
18 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,4 @@ | |
/vendor/ | ||
/bin/ | ||
/composer.phar | ||
/node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
Update and install packages with composer | ||
|
||
composer update | ||
$ composer update | ||
|
||
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. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |