Skip to content

One-click Deploy to Heroku #461

Closed
Closed

Description

@TJMusiitwa

Hey there, while the install and deploy with Docker is great. I have been having issues with the Docker installation on my computer so if there was support for a 1-click deploy to Heroku that would be a great developer experience.
Or maybe I am just asking something that is a bit-far fetched.
Thanks

Activity

  1. eldadfux commented on Jun 28, 2020

    @eldadfux
    Member

    Actually we were just talking about working on something like this. @PedroCisnerosSantana do you have any updates on this or any estimated time table?

  2. added
    enhancement
    good first issue
    on Jun 28, 2020
  3. W4nn4Die commented on Jun 29, 2020

    @W4nn4Die
    Contributor

    Hey @eldadfux I started working on this some days ago and had some problems, still trying to solve them, will keep you up to date in Discord

  4. eldadfux commented on Jun 29, 2020

    @eldadfux
    Member

    @PedroCisnerosSantana great, let me know if I can help.

  5. W4nn4Die commented on Jun 29, 2020

    @W4nn4Die
    Contributor

    @eldadfux sure, I will contact you if not today, tomorrow :D

  6. BananaEgg commented on Jun 30, 2020

    @BananaEgg

    I'm also trying to deploy to Heroku,
    I need to know what container is the front end so I can set the process type to web.

  7. eldadfux commented on Jun 30, 2020

    @eldadfux
    Member

    @BananaEgg We use Traefik as the entrypoint on a "normal" setup: https://appwrite.io/docker-compose.yml

    You can also try and use the Appwrite container on port 80 and 443. Traefik is mainly there for the auto-ssl certificates.

  8. BananaEgg commented on Jun 30, 2020

    @BananaEgg

    Iv'e deployed it following this: https://devcenter.heroku.com/articles/container-registry-and-runtime
    meaning that i cloned Appwrite locally and created an app with it.
    Now i'm getting this error " Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch"

    I understand that the issue is because there's no option to bind with the environment variable port.
    I found the format in their documentation: https://help.heroku.com/PPBPA231/how-do-i-use-the-port-environment-variable-in-container-based-apps

    I'm quite new to dockers and I'm not sure how to implement it without braking anything else.
    This is the current format "
    command:
    - --log.level=DEBUG
    - --api.insecure=true
    - --providers.file.directory=/storage/config
    - --providers.file.watch=true
    - --providers.docker=true
    - --entrypoints.web.address=:80
    - --entrypoints.websecure.address=:443
    - --accesslog=true
    restart: unless-stopped
    ports:
    - 80:80
    - 443:443
    - 8080:8080
    "
    This is what they are expecting - For example, instead of this:

    PORT=8080
    EXPOSE $PORT
    CMD gunicorn --bind 0.0.0.0:$PORT wsgi

    We ask that you do something like this:

    CMD gunicorn --bind 0.0.0.0:$PORT wsg

  9. gkathir15 commented on Jul 2, 2020

    @gkathir15

    @BananaEgg has a different storage specification. ie files won't be retained after some time, it could also be the issue
    refer https://devcenter.heroku.com/articles/active-storage-on-heroku,
    not to sound negative, but if Apwrite can be deployed with features except storage working.

  10. TJMusiitwa commented on Jul 3, 2020

    @TJMusiitwa
    Author

    I am wondering and the thought has just come to me, if this by any chance is a little complex, is it instead possible to say use a Github Action that can be able to pull the docker image, build it then deploy it to the a service of one's choice?
    This comes after all the research shows that there are already a number of actions that support docker and pushing images to say Heroku's image container registry.

    I am fairly comfortable with Github Actions and will be willing to give this a shot

  11. W4nn4Die commented on Jul 3, 2020

    @W4nn4Die
    Contributor

    I am wondering and the thought has just come to me, if this by any chance is a little complex, is it instead possible to say use a Github Action that can be able to pull the docker image, build it then deploy it to the a service of one's choice?
    This comes after all the research shows that there are already a number of actions that support docker and pushing images to say Heroku's image container registry.

    I am fairly comfortable with Github Actions and will be willing to give this a shot

    It was the first thing I did, but the problem is the docker, that action will only get the dockerfile and do the stuff

  12. eldadfux commented on Jul 3, 2020

    @eldadfux
    Member

    I am wondering and the thought has just come to me, if this by any chance is a little complex, is it instead possible to say use a Github Action that can be able to pull the docker image, build it then deploy it to the a service of one's choice?
    This comes after all the research shows that there are already a number of actions that support docker and pushing images to say Heroku's image container registry.

    I am fairly comfortable with Github Actions and will be willing to give this a shot

    Can you please share some references to this GitHub actions?

  13. TJMusiitwa commented on Jul 3, 2020

    @TJMusiitwa
    Author

    @eldadfux So this action will deploy a docker image to Heroku
    Then among the various Github actions this is the one officially provided by the Docker team to build and push images,

    This one sets up the Docker CLI though I think it won't be needed since I read that Github Actions already have some sort of Docker already installed on the backend as quoted below:

    GitHub Actions already leverages Docker in a lot of its workflows. From having Docker pre-installed and configured on the cloud runners to having first class support for containerized actions allows developers to easily use the same Docker workflows they use locally to configure their repo’s CI/CD. Combined with multi-stage builds and you have a powerful environment to work with.

    I am wondering and the thought has just come to me, if this by any chance is a little complex, is it instead possible to say use a Github Action that can be able to pull the docker image, build it then deploy it to the a service of one's choice?
    This comes after all the research shows that there are already a number of actions that support docker and pushing images to say Heroku's image container registry.
    I am fairly comfortable with Github Actions and will be willing to give this a shot

    Can you please share some references to this GitHub actions?

  14. 18 remaining items

  15. stnguyen90 commented on Jul 9, 2022

    @stnguyen90
    Contributor

    Any other alternative to Droplet for appwrite?

    @himanshu-khare you can use any VPS provider including AWS EC2, Azure VMs, Google Compute Engine, and Oracle Cloud Compute VMs.

  16. neiljaywarner commented on Oct 11, 2022

    @neiljaywarner

    @himanshu-khare what is the downside to droplet? it has $4/month droplet and $200 credit, but the billing structure does seem confusing. obviously a free-for-experimenting via heroku or something "really" free would be great.

  17. stnguyen90 commented on Oct 11, 2022

    @stnguyen90
    Contributor

    @neiljaywarner, if you're looking for something to experiment on, I would suggest our integration with gitpod.

  18. stnguyen90 commented on Sep 22, 2023

    @stnguyen90
    Contributor

    @W4nn4Die, are you still working on this? FYI, I'll need to unassign you soon due to inactivity.

  19. self-assigned this
    on Sep 22, 2023
  20. W4nn4Die commented on Sep 22, 2023

    @W4nn4Die
    Contributor
  21. daohoangson commented on Oct 7, 2023

    @daohoangson

    Can you assign this to me?

    Scratch that, I have managed to get some services up and running at https://github.com/daohoangson/appwrite-heroku but it is impossible to get Open Runtimes to work within Heroku 🤷

    Also, a maintainer mentioned here about the same limitation.

  22. deleted a comment from on May 6, 2024
  23. eldadfux commented on Oct 25, 2024

    @eldadfux
    Member

    Due to the fact Heroku shutdown their free tier and since there is some limited edition contributed by @daohoangson I am closing this issue as this is not a priority anymore.

    More free options for self-hosting Appwrite are available at https://appwrite.io/docs/advanced/self-hosting#one-click-setups

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementhelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions