heroku-buildpack-phoenix-static
heroku-buildpack-phoenix-static copied to clipboard
heroku build fails when node patch not specified
Setting node_version=10.15
in the phoenix_static_buildpack.config
led to a heroku build failure:
Downloading and installing node 10.15.3...
Installing Node 10.15...
mv: cannot stat '/tmp/node-v10.15-linux-x64/*': No such file or directory
Examining the result of tar xzf /tmp/node-v10.15-linux-x64 -C /tmp
with ls /tmp
we see the following:
node-v10.15-linux-x64.tar.gz node-v10.15.3-linux-x64
Note the extracted folder includes the patch and causes following to fail in when installing node because the node-version does not have the patch specified.
mv /tmp/node-v$node_version-linux-x64/* $node_dir
same problem here
@prem-prakash @OfTheDelmer Did you find a fix?
@hashim-sohail I just added the patch version
Noting that I got the same error:
Installing binaries
Resolving node version 14.7...
Downloading and installing node 14.7.0...
Installing Node 14.7...
mv: cannot stat '/tmp/node-v14.7-linux-x64/*': No such file or directory
! Push rejected, failed to compile Phoenix app.
And resolved it by adding the precise version to my phoenix_static_buildpack.config file in the root of my project directory:
node_version=14.7.0