Skip to content

Commit 8f27b58

Browse files
authored
Merge pull request #136 from teksaver/patch-1
Dockerfile update to fix database issue on render.com
2 parents 998635f + ec3090b commit 8f27b58

File tree

1 file changed

+4
-0
lines changed
  • docs/docs/11_deploy_to_render/02_create_render_web_service

1 file changed

+4
-0
lines changed

docs/docs/11_deploy_to_render/02_create_render_web_service/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ While on the free plan, deployments are a bit slow. It has to build your image a
4444

4545
Now, you can access your service URL and try it out using Insomnia or Postman!
4646

47+
:::warning
48+
If `data.db` is in the `.gitignore` file you need to call `flask db migrate` to populate the sqlite database. Since the free plan does not provide the CLI, you can do this in the `Dockerfile` by adding `RUN flask db upgrade` after `COPY . .`.
49+
:::
50+
4751
![](https://res.cloudinary.com/teclado/image/upload/v1689180778/courses/rest-apis-flask-python/insomnia-test-prod_dlfe1d.png)
4852

4953
:::warning

0 commit comments

Comments
 (0)