Skip to content

Instantly share code, notes, and snippets.

@kaniket7209
Created December 4, 2021 06:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaniket7209/51681e36c0accae3b046362ffa4f9174 to your computer and use it in GitHub Desktop.
Save kaniket7209/51681e36c0accae3b046362ffa4f9174 to your computer and use it in GitHub Desktop.
Deploying our app to Heroku
1. How do I deploy a Python app to Heroku?
Answer: Deployment Steps
a) Login to your Heroku account using CLI. ...
b) Create a web app on Heroku. ...
c) Create requirements.txtfile in the same project directory. ...
d) Create a Procfile. ...
e) Create runtime.txt to specify the Python version at runtime. ...
f) Initialize an empty git repository and push the code.
2. How do I deploy an existing app to Heroku?
Answer: To deploy your app to Heroku, you typically use the git push command to push the code from your local repository's master or main branch to your heroku remote, like so: $ git push heroku main Initializing repository, done.
3. How Heroku deploy works?
Answer: The Heroku platform uses Git as the primary means for deploying applications (there are other ways to transport your source code to Heroku, including via an API). When you create an application on Heroku, it associates a new Git remote, typically named heroku , with the local Git repository for your application.
4. How do I deploy a heroku site?
Answer: In order to deploy a site you need a couple of things:
a) Have git installed.
b) Heroku Account – sign up here.
c) Download the Heroku Toolbelt – a command line application for managing your Heroku account.
d) Run heroku login in your terminal or command prompt and fill in your Heroku credentials.
5. What is the difference between containers and Kubernetes?
Answer: While the promise of containers is to code once and run anywhere, Kubernetes provides the potential to orchestrate and manage all your container resources from a single control plane. It helps with networking, load-balancing, security, and scaling across all Kubernetes nodes which runs your containers.
6. Is Docker better than Heroku?
ANswer: Heroku runs on dynos which they describe as “a lightweight container running a single super-specified command”. ...
With Docker you get infinitely more flexibility and portability because the user controls the underlying container rather than having that defined by Heroku.
7. Can you upload images to Heroku?
Answer: This is crucial on Heroku, because your app's dynos have an ephemeral filesystem. ... Simple File Upload provides a dropzone UI, allows your users to drop images or select images from a local filesystem, and returns a url of the image behind a CDN.
8. Why is it called Heroku?
Answer: The name "Heroku" is a portmanteau of "heroic" and "haiku". The Japanese theme is a nod to Matz for creating Ruby.
1. Which of the followng is not correct about Heroku?
a) Heroku is a cloud based platform
b) It offers PaaS product
c) It is based on AWS
d) It dosn't allow users to deploy docker containers.
Answer: d)
2. AWS is
a) PaaS
b) LaaS
c) Saas
d) Azure
Answer: b)
3. Heroku is
a) PaaS
b) LaaS
c) Saas
d) Azure
Answer: a)
4. heroku is
a) commercial service provider
b) an open source software project
c) cloud computing platform
d) All of the above
Answer: b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment