Skip to content
This repository has been archived by the owner on Dec 25, 2022. It is now read-only.

Commit

Permalink
Merge pull request #66 from tubone24/heroku
Browse files Browse the repository at this point in the history
Heroku
  • Loading branch information
tubone24 committed Apr 22, 2019
2 parents 8ee717f + 33253f7 commit a56bd6d
Show file tree
Hide file tree
Showing 7 changed files with 66 additions and 2 deletions.
15 changes: 15 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ The ``Ebook_homebrew`` is changing file name to only digit name like ``001.jpg``
:target: https://cloud.docker.com/repository/docker/tubone24/ebook-homebrew
:alt: dockerhub

.. image:: https://www.herokucdn.com/deploy/button.png
:target: https://heroku.com/deploy
:alt: Deploy to Heroku

ebook_homebrew is command line interface which change file name to only digit name like 001.jpg and make e-book format files.

Getting Started
Expand Down Expand Up @@ -246,6 +250,17 @@ Examples

Web GUI. Such as `Create PDF from your images <examples/web_gui/>`_

Deploy API to Heroku
====================

Deploy Ebook-homebrew to Heroku app.

Push a button below.

.. image:: https://www.herokucdn.com/deploy/button.png
:target: https://heroku.com/deploy
:alt: Deploy to Heroku

Licence
=======

Expand Down
13 changes: 13 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "ebook-homebrew",
"description": "Rename image file to only digit name and convert ebook files.",
"keywords": [
"ebook",
"pdf"
],
"website": "https://tubone-project24.xyz",
"repository": "https://github.com/tubone24/ebook_homebrew",
"logo": "https://raw.githubusercontent.com/tubone24/ebook_homebrew/master/docs/_images/bookicon.png",
"success_url": "/status",
"stack": "container"
}
29 changes: 29 additions & 0 deletions doc_src/deploy2heroku.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
Deploy to Heroku
================

Deploy for CLI
--------------

.. note::

Before push heroku button, create your Heroku account.

Install Heroku for CLI ::

$ heroku create <app name>
$ heroku stack:set container
$ git push heroku master
$ heroku open


Deploy Heroku button
--------------------

Or Push a Heroku button below

.. image:: https://www.herokucdn.com/deploy/button.png
:target: https://heroku.com/deploy
:alt: Deploy to Heroku



4 changes: 4 additions & 0 deletions doc_src/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ Badges:
:target: https://cloud.docker.com/repository/docker/tubone24/ebook-homebrew
:alt: dockerhub

.. image:: https://www.herokucdn.com/deploy/button.png
:target: https://heroku.com/deploy
:alt: Deploy to Heroku

.. toctree::
:maxdepth: 2

Expand Down
2 changes: 1 addition & 1 deletion doc_src/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Installation
Warnings
--------

.. warning:: Ebook_homebrew Only compatible Python 3.5 and 3.6 now.
.. warning:: Ebook_homebrew Only compatible Python 3.6 and 3.7 now.


Basic Installation
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ RUN cd /app && git clone https://github.com/tubone24/ebook_homebrew.git
WORKDIR /app/ebook_homebrew
RUN pip3 install -r requirements.txt
RUN python3 setup.py install
CMD ebookhomebrew api -p 8080
CMD ebookhomebrew api -p 80
3 changes: 3 additions & 0 deletions heroku.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
build:
docker:
web: docker/Dockerfile

0 comments on commit a56bd6d

Please sign in to comment.