Skip to content

Commit 785a9ae

Browse files
committed
WIP Fix node libraries
1 parent 3013bef commit 785a9ae

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/compiler.py

Lines changed: 4 additions & 2 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)
@@ -292,7 +294,7 @@ def install_application(self):
292294
myenv['HEROKU_ASSETS_VERSION'] = self.deploy_date.strftime("%Y%m%d%H%M%S")
293295

294296
#temporary hack to fix assetic deployment with less
295-
myenv['SDZ_NODE_LIBRARIES'] = self._bp.build_dir + '/node_modules'
297+
#myenv['SDZ_NODE_LIBRARIES'] = self._bp.build_dir + '/node_modules'
296298

297299
# Composer
298300
# check if we have Composer dependencies and vendors are not bundled

0 commit comments

Comments
 (0)