Skip to content

Commit

Permalink
better uglify settings
Browse files Browse the repository at this point in the history
  • Loading branch information
brunogoossens committed Feb 24, 2015
1 parent cd13ec5 commit 137e226
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 8 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
14 changes: 8 additions & 6 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

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.

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 137e226

Please sign in to comment.