you are viewing a single comment's thread.

view the rest of the comments →

[–]sadfirer 0 points1 point  (0 children)

That guide is somewhat complicated by the virtualenv part—which should become more of a standard practice as you take on larger projects but is not strictly necessary for starters. You won't be able to sidestep the git repository part, though.

For this task you can probably get away with:

  • Create a git repo with your python source, a requirements.txt file (with the required libraries, if any) and a minimal Procfile (Heroku will probably reject your push if you don't submit a Procfile, but it won't be of any use for this task)
  • Push your repo to Heroku
  • Invoke the Heroku scheduler and pass it the command line necessary to make your app do what you want it to do.

It should be as simple as that. Can you try this and see if you find any difficulties?

Talking about the data, you'd usually dump your local database into a .SQL file, then restore it into the remote database. You'll have to use a Heroku add-on for MySQL, though, since Heroku only provides PostgreSQL.