I am new on ruby on rails. and am trying to deploy my application from my local system to heroku, but when i run heroku run rake db:migrate, i get this error msg:
Running rake db:migrate attached to terminal... up, run.7855
!
! Error connecting to dyno, see https://devcenter.heroku.com/articles/one-off-dynos#timeout-awaiting-process
I've followed the link to the site but i didn't understand what was said there. Please any help as to how deploy it successfully will be much appreciated.
Thank you
Seems like your have no access to rendezvous.runtime.heroku.com:5000
Ask your system administrators or internet service provider to allow this address and port for you
This problem solution already described at https://devcenter.heroku.com/articles/one-off-dynos#timeout-awaiting-process, but I didn't understand at once too :)
You can check access to necessary resource by telnet rendezvous.runtime.heroku.com 5000 command
Update:
Recently I encountered with problem when rendezvous.runtime.heroku.com:5000 is accessible but heroku run ... command doesn't work.
In this case command must be modified to heroku run:detached ...
It helped me, but interactive utilities like bash will not work because of output will be available only in logs
Related
I am having a hard time deploying my little flask app to Heroku. I created it in visual studio community and just want to deploy it now to Heroku.
App code:
https://github.com/Phasor/QR-Site-2020
I signed up for a free account at Heroku and am following this guide: https://devcenter.heroku.com/articles/getting-started-with-python#deploy-the-app
I ran the following commands in their CLI:
git clone https://github.com/heroku/QR-Site-2020.git
heroku create
git push heroku master
When I write heroku ps:scale web=1 I get the following error:
Couldn't find that process type (web).
Looking for advice online it seems I need to define something called a Procfile. I have tried to do that and defined it as:
web: gunicorn runserver:app although I am very unsure that is correct (I normally just hit the "play" button in VS to run the app locally). Adding the Procfile does not solve the error message. I believe it should not hav the .txt extension but not sure you can create a text file without that in VS.
Originally I was not using gunicorn but think I may need to use that for Heroku so I added that to my requirements.txt.
Can anyone give me any pointers? Thanks
A customer of mine has a Heroku Python/Django application that they have asked me to take a look at and I am trying to understand the process of getting it running on my local Windows 7 laptop. I have been searching the net without any success. Does anyone have a suggestions or guides on how to do this.
Please have a look here : Collaborating with Others
They should add you as a collaborator so you can git clone the project files. They can do it via the heroku toolbelt installed on their computer (in command line) or via the Dashboard heroku
i am trying to deploy spring application on cloudfoundry.but as a build war file of project using mvn package command.after that i used vmc push --appname target(directory)
i finished all the steps that need to push on cloudfoundry.
finally i got message uploading application-name....ok
then i entered command vmc apps
then it shows all my pushed applications....
there was url(http://cloudapp-project-master.cloudfoundry.com/) for my deployed application.
which i copied and placed in browser then it giving me 404 Not Found nginx
i don't know where is the problem....
Please help me to get out of this.
advanced thanks....
Can you look at the logs folder to see if the files there give more information.
vmc logs <app-name>
or
vmc files <app-name> logs/stderr.log
vmc files <app-name> logs/stdout.log
What is the status of the app when you run vmc apps? I would recommend you to file a ticket at http://support.cloudfoundry.com with detailed information about the issue and maybe share the project so that they can reproduce the issue easily. You will need the account registered in cf.com to be able to login.
I am using cloudfoundry to deploy a rails 3.1 app. Is there a way to run common rake commands, like for e.g. rake db:reset?
You can also push another instance of the application, purposefully setting the application type to 'Standalone' and also bound to the same services. You will be then prompted for a command to run which you can set to something like;
bundle exec rake VERBOSE=true QUEUE=default resque:work
This example starts a Resque worker but you could easily start a different task.
Here's a similar question on their forums: http://support.cloudfoundry.com/entries/20160007-anyway-to-run-rake-db-seed-for-rails-app
Error 402: App packaging failed: 'Failed synchronizing resource pool'
I got this error when deploy a node.js application to api.cloudfoundry.com.
the vmc I used is:
vmc 0.3.10
I want to know how does this error happened. Is there something wrong with my vmc? or something wrong with my node.js application?
Thank you.
You'll definitely want to upgrade to the latest vmc. "gem update" should refresh it to 0.3.18 for you but if not, "gem install vmc" to grab the newest.
What steps did you follow to deploy the app - did you just run vmc push and follow the prompts, did you have a manifest.yml file in place (probably not as vmc 0.3.10 may have pre-dated manifest support), did you provide additional parameters to vmc push?