Skip to content

Commit 4df21d1

Browse files
committed
Merge branch 'node_librairies'
2 parents 061054f + ce5531b commit 4df21d1

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/compiler.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -251,9 +251,11 @@ def install_application(self):
251251
os.symlink(self._bp.build_dir+'/vendor/php', '/app/vendor/php')
252252

253253
# This is clearly a hack but it allows Node to work during compilation time
254-
self.logger.log('Symlink /app/vendor/node (hacky but needed)')
254+
self.logger.log('Symlink /app/vendor/node and /app/node_modules (hacky but needed)')
255255
if not os.path.isdir('/app/vendor/node'):
256256
os.symlink(self._bp.build_dir+'/vendor/node', '/app/vendor/node')
257+
if not os.path.isdir('/app/node_modules'):
258+
os.symlink(self._bp.build_dir+'/node_modules', '/app/node_modules')
257259

258260

259261
myenv = dict(os.environ)
@@ -291,9 +293,6 @@ def install_application(self):
291293

292294
myenv['HEROKU_ASSETS_VERSION'] = self.deploy_date.strftime("%Y%m%d%H%M%S")
293295

294-
#temporary hack to fix assetic deployment with less
295-
myenv['SDZ_NODE_LIBRARIES'] = self._bp.build_dir + '/node_modules'
296-
297296
# Composer
298297
# check if we have Composer dependencies and vendors are not bundled
299298
if os.path.isfile('www/composer.json'):

0 commit comments

Comments
 (0)