Deployment to Bluemix hosting fails during execution of the meteor build
command with the error “ENOSPC” which means no space left, though it could also be caused by reaching the limit of maximum number of files watched per user.
On the internet some people suggest running the following command to increase the limit:
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
If I add that to the script just before meteor build
, it returns the error:
sudo: no tty present and no askpass program specified
How could this be fixed?