V
V
Valentine2018-02-03 21:03:19
Django
Valentine, 2018-02-03 21:03:19

Migrate fails when deploying Django to Heroku, how to solve?

The problems started even when executing the command git push heroku master received an error

To https://git.heroku.com/modernarchetype.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: не удалось отправить некоторые ссылки в «https://git.heroku.com/modernarchetype.git»

On the advice of SO, I created a new branch, called "tempbranch". Everything worked out.
Подсчет объектов: 6395, готово.
Delta compression using up to 4 threads.
Сжатие объектов: 100% (5328/5328), готово.
Запись объектов: 100% (6395/6395), 8.84 MiB | 57.00 KiB/s, готово.
Total 6395 (delta 1885), reused 0 (delta 0)
remote: Pushed to non-master branch, skipping build.
To https://git.heroku.com/modernarchetype.git
 * [new branch]      tempbranch -> tempbranch

Next, I run the heroku run python manage.py migrate command and I get an error:
Running python manage.py migrate on ⬢ modernarchetype... !
 ▸    Cannot run one-off process at this time. Please try again later.

Help me decide, I'm working with Heroku for the first time, and I haven't studied Django for a long time either.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2018-02-03
@sim3x

https://stackoverflow.com/a/34727606
Requires exclusive access to "dyno"
Need to kill all competitors that connect to the same "dyno"
search heroku ps
killheroku ps:stop <DYNO>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question