DEV Community

Discussion on: Docker, Django, React: Building Assets and Deploying to Heroku

 
hahnsangkim profile image
H. Kim

Thank you so much for your reply, Graig!
It was about an indent error. Now, I have another issue.
Is it about a space issue on the Dyno? or an installation error? It seems relevant to a kind of generic troubleshoot... but if you could look at it and give me your first thought, it will be helpful. Even if not, it will be OK.

Thank you and I look forward to your feedback.
Best,

remote: After this operation, 30.4 MB of additional disk space will be used.
remote: Do you want to continue? [Y/n] Abort.
remote: The command '/bin/sh -c apt-get -y install curl   && curl -sL https://deb.nodesource.com/setup_8.x | bash   && apt-get install nodejs   && curl -o- -L https://yarnpkg.com/install.sh | bash' returned a non-zero code: 1
remote: 
remote: Verifying deploy...
remote: 
remote: !   Push rejected to vast-escarpment-xxxx.
remote: 
To https://git.heroku.com/vast-escarpment-xxxx.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/vast-escarpment-xxxx.git'
Thread Thread
 
hahnsangkim profile image
H. Kim • Edited

I figured it out. V8 of nodejs has been deprecated. I changed the version in Dockerfile

RUN apt-get -y install curl \
  && curl -sL https://deb.nodesource.com/setup_8.x | bash \
  && apt-get install nodejs \
  && curl -o- -L https://yarnpkg.com/install.sh | bash 

into

RUN apt-get -y install curl \
  && curl -sL https://deb.nodesource.com/setup_12.x | bash \
  && apt-get install nodejs \
  && curl -o- -L https://yarnpkg.com/install.sh | bash

I hope this will help others who may give it a try.

Most of all, thank you for your posting and feedback to my questions, Craig!