Skip to content

Commit 4758b30

Browse files
committed
Added heroku deploy
1 parent e2afa56 commit 4758b30

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

README.md

+28-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# tutorial-rails-rest-api
22

3+
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)
4+
35
How to Run
46
----------
57

@@ -10,7 +12,7 @@ How to Run
1012
* [ELK Setup](/rails_log_with_elk_setup.md)
1113
1. Setup
1214
> You can run with ```docker-compose``` or non docker-compose
13-
1. docker-compose
15+
### docker-compose
1416
> server run
1517
````
1618
docker-compose up --build -d
@@ -49,7 +51,7 @@ How to Run
4951
```bash
5052
docker-compose run --no-deps web bundle exec rake routes
5153
```
52-
2. non docker-compose
54+
### non docker-compose
5355
> mkdir upload folder
5456
```bash
5557
mkdir ~/storage
@@ -154,6 +156,9 @@ How what to do
154156
* [how to added cache](#how-to-added-cache)
155157
* [Active Storage](#active-storage)
156158
* [Setup](#setup)
159+
* [Deploy](#deploy)
160+
* [Heorku](#herolku)
161+
* [Docker compose](#docker-compose)
157162

158163
### Build Json with active_model_serializers Gem
159164
1. Gemfile
@@ -759,3 +764,24 @@ you wiil make dir /storage with ```mkdir /storage```
759764
# your code will be here ...
760765
end
761766
```
767+
768+
### Deploy
769+
#### Heorku
770+
> https://devcenter.heroku.com/articles/rediscloud
771+
```bash
772+
heroku rake db:migrate --app tutorial-rails-rest-api
773+
heroku rake db:seed --app tutorial-rails-rest-api
774+
heroku logs --tail --app tutorial-rails-rest-api
775+
```
776+
i did deploy to heroku. let's break it down with swagger UI <br/>
777+
https://tutorial-rails-rest-api.herokuapp.com/api-docs/index.html <br/>
778+
779+
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)
780+
781+
#### Docker compose
782+
Step 1 - git clone
783+
```bash
784+
git cloone https://github.com/x1wins/tutorial-rails-rest-api.git
785+
```
786+
Step 2 - docker-compose up <br>
787+
[Docker-compose](docker-compose)

0 commit comments

Comments
 (0)