Skip to content

Commit 22c294a

Browse files
authored
Merge pull request #89 from LinkValue/fix/install-bin-prod-makefile
fix webpack production build
2 parents 46e0b2c + 55fe937 commit 22c294a

File tree

5 files changed

+761
-487
lines changed

5 files changed

+761
-487
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ php:
77

88
before_script:
99
- nvm install "$(jq -r '.engines.node' package.json)"
10-
- make install-bin install-composer install-npm db-build clean
10+
- make install-bin-dev install-bin-prod install-composer install-npm db-build clean
1111

1212
script:
1313
- npm run lint

Makefile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,12 @@ clean:
3737
php bin/console cache:warmup
3838

3939
# Installation
40-
install-bin:
40+
install-bin-prod:
4141
mkdir -p bin
4242
test -f bin/composer || curl -sS https://getcomposer.org/installer | php -- --install-dir=bin --filename=composer
43+
44+
install-bin-dev:
45+
mkdir -p bin
4346
test -f bin/php-cs-fixer || wget http://get.sensiolabs.org/php-cs-fixer.phar -O bin/php-cs-fixer
4447

4548
install-composer:
@@ -53,7 +56,7 @@ install-jwt:
5356
test -f var/jwt/private.pem || openssl genrsa -out var/jwt/private.pem -passout pass:Appbuild -aes256 4096
5457
test -f var/jwt/public.pem || openssl rsa -in var/jwt/private.pem -passin pass:Appbuild -pubout -out var/jwt/public.pem
5558

56-
install: install-bin install-composer install-jwt install-npm db-build assets-build clean
59+
install: install-bin-dev install-bin-prod install-composer install-jwt install-npm db-build assets-build clean
5760

5861
# Update
5962
update: update-composer clean
@@ -88,7 +91,7 @@ assets-watch:
8891
npm start
8992

9093
# Production
91-
prod-install: install-bin
94+
prod-install: install-bin-prod
9295
SYMFONY_ENV=prod php bin/composer install --no-dev --optimize-autoloader --no-interaction
9396
npm install
9497

0 commit comments

Comments
 (0)