1
1
# tutorial-rails-rest-api
2
2
3
+ [ ![ Deploy] ( https://www.herokucdn.com/deploy/button.svg )] ( https://heroku.com/deploy )
4
+
3
5
How to Run
4
6
----------
5
7
@@ -10,7 +12,7 @@ How to Run
10
12
* [ ELK Setup] ( /rails_log_with_elk_setup.md )
11
13
1 . Setup
12
14
> You can run with ``` docker-compose ``` or non docker-compose
13
- 1 . docker-compose
15
+ ### docker-compose
14
16
> server run
15
17
````
16
18
docker-compose up --build -d
@@ -49,7 +51,7 @@ How to Run
49
51
```bash
50
52
docker-compose run --no-deps web bundle exec rake routes
51
53
```
52
- 2. non docker-compose
54
+ ### non docker-compose
53
55
> mkdir upload folder
54
56
```bash
55
57
mkdir ~/storage
@@ -154,6 +156,9 @@ How what to do
154
156
* [ how to added cache] ( #how-to-added-cache )
155
157
* [ Active Storage] ( #active-storage )
156
158
* [ Setup] ( #setup )
159
+ * [ Deploy] ( #deploy )
160
+ * [ Heorku] ( #herolku )
161
+ * [ Docker compose] ( #docker-compose )
157
162
158
163
### Build Json with active_model_serializers Gem
159
164
1 . Gemfile
@@ -759,3 +764,24 @@ you wiil make dir /storage with ```mkdir /storage```
759
764
# your code will be here ...
760
765
end
761
766
` ` `
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
+ [](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