# Deploying Prodigy on Cloud Platform (Heroku)

**URL:** <https://support.prodi.gy/t/deploying-prodigy-on-cloud-platform-heroku/4344>\
**Category:** Uncategorized\
**Tags:** solved, server\
**Created:** [June 18, 2021, 8:25am UTC](https://support.prodi.gy/t/deploying-prodigy-on-cloud-platform-heroku/4344 "2021-06-18T08:25:06Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![Matt2021](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/matt2021/32/2482_2.png) [@Matt2021](https://support.prodi.gy/u/Matt2021)\
**Post date:** [November 8, 2021, 3:30pm UTC](https://support.prodi.gy/t/deploying-prodigy-on-cloud-platform-heroku/4344/10 "2021-11-08T15:30:54Z")

</div>

Thank you, the hint to the Environment Variables solved it. I entered these variables DATABASE\_URL, PGHOST, PGPASSWORD, PGPORT, PGUSER into the **Config Vars** of Heroku, which worked.

One last question concerning the **use of a custom recipe**.  
I changed the prodigy.serve command in the `main.py` :

```python
"image-caption-loop data_testset ./load_images.jsonl ./mark_loop.py"

```

As I read in the posts, I checked the dash of -F, and tested it with and without -F, as well with and without .py-ending ( [prodigy.serve does not work with custom recipe](https://support.prodi.gy/t/prodigy-serve-does-not-work-with-custom-recipe/2379) ).

I get the error: "`✘ Can't find recipe 'image-caption-loop`".

The recipe in `mark_loop.py` looks like this:

```python
@prodigy.recipe(
    "image-caption-loop",
    dataset=("The dataset to save to", "positional", None, str),
    file_path=("Path to images", "positional", None, str),
)

def image_caption_loop(dataset, file_path):
    #blocks of the interface
    blocks = [
        {"view_id": "classification"}
    ]

    def get_stream():
        #stream = JSONL(file_path) # load in the JSONL file
        for label in ["FIRST_LABEL", "SECOND_LABEL"]:
            examples = JSONL(file_path) #enter path with executing the recipe like ./img
            for eg in examples:
                eg["label"] = label
                yield eg

    return {
        "dataset": dataset,
        "stream": get_stream(),
        "view_id": "blocks",
        "config": {"blocks": blocks}
    }

```

Do I have to specify the database somehow in the recipe?  
Thanks again for your help!

---

_[View the full topic](https://support.prodi.gy/t/deploying-prodigy-on-cloud-platform-heroku/4344)._
