Skip to content

Commit

Permalink
node_cache: Fix buggy production deployment code.
Browse files Browse the repository at this point in the history
The previous version of the production deployment code for release
tarballs did not correctly install the node_modules directory.
  • Loading branch information
timabbott committed Dec 8, 2016
1 parent 8b77889 commit 95a49f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/lib/node_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ def do_npm_install(target_path, npm_args, stdout=None, stderr=None, copy_modules
]
if copy_modules:
print("Cached version not found! Copying node modules.")
cmds.append(["mv", "node_modules", target_path])
cmds.append(["cp", "-rT", "prod-static/serve/node_modules",
os.path.join(target_path, "node_modules")])
else:
print("Cached version not found! Installing node modules.")
cmds.append(['npm', 'install'] + npm_args + ['--prefix', target_path])
Expand Down

0 comments on commit 95a49f6

Please sign in to comment.