sean.jin
Spark Code Blog
sean.jin
전체 방문자
오늘
어제
  • 분류 전체보기
    • 개발공부
      • Kotlin
      • LeetCode
      • Algorithm
      • React
    • 주식차트
    • 책리뷰
    • 유틸리티

블로그 메뉴

  • 홈
  • 태그
  • 방명록

공지사항

인기 글

태그

  • 주식투자
  • 경제
  • 아빠와 딸의 주식투자 레슨
  • 네마녀의날
  • 책
  • 변동성
  • 책리뷰
  • 부의 추월차선
  • 트리플 위칭데이
  • 오
  • 책추천
  • 초보
  • 자기개발
  • 쿼드러플위칭데이
  • 주식입문자
  • 주식책리뷰

최근 댓글

최근 글

티스토리

hELLO · Designed By 정상우.
sean.jin

Spark Code Blog

[React] Deploy React App Using Heroku
개발공부/React

[React] Deploy React App Using Heroku

2022. 4. 25. 09:44
반응형

Heroku is a platform as a service that enables developers to build, run and operate applications entirely in the cloud. 

 

I decided to use Heroku for my portfolio react app since it is very confident to deploy applications and I can easily update code with heroku commands. 

 

You also don't need to know complex server settings since heroku provides everything through the cloud! 

 

In order to start heroku you need to make a heroku account.

 

Create Heroku Account

Enter below link to create your heroku account. 

 

Heroku | Sign up

Free account Create apps, connect databases and add-on services, and collaborate on your apps, for free. Your app platform A platform for apps, with app management & instant scaling, for development and production. Deploy now Go from code to running app in

signup.heroku.com

 

Create New App in Heroku

New -> Create new app

Select app-name and create app

Add Buildpack

1. click setting

2. Under setting tab Go to Buildpacks and click buildpacks

3. we have to add two build pack. 

- heroku/nodejs

- https://github.com/mars/create-react-app-buildpack.git

 

Git setup

Now you have to upload your react app folder to heroku server by using heroku CLI

 

1. Download heroku CLI command line on below link: 

https://devcenter.heroku.com/articles/heroku-command-line

 

The Heroku CLI | Heroku Dev Center

Last updated April 12, 2022 The Heroku Command Line Interface (CLI) lets you create and manage Heroku apps directly from the terminal. It’s an essential part of using Heroku. Install the Heroku CLI Pre-requisites The Heroku CLI requires Git, the popular

devcenter.heroku.com

*if you are using home brew, enter below command on command line for quick download

brew tap heroku/brew && brew install heroku

 

2. Now go to heroku web of your application and select deploy tab.

3. Under deploy tab select Heroku Git and follow below command.

 

3a. Open Visual Studio Code and then Open terminal

heroku login

 

3b. click login

 

3c. Create new git repository

git init
heroku git:remote -a [heroku app name]

 

3d. Deploy your application

$ git add .
$ git commit -am "make it better"
$ git push heroku master

 

반응형

'개발공부 > React' 카테고리의 다른 글

[React] API 불러오기  (0) 2022.03.23
[React] class component와 state 활용- 라이프 사이클, React.Component  (0) 2022.03.20
[React] map 활용  (0) 2022.03.19
[React] Visual Studio Code에서 Github 활용 필수 기본 정리 - 깃헙에 업로드 하기, 클론  (0) 2022.03.18
[React] react 앱을 만들기전 셋업  (0) 2022.03.18
    '개발공부/React' 카테고리의 다른 글
    • [React] API 불러오기
    • [React] class component와 state 활용- 라이프 사이클, React.Component
    • [React] map 활용
    • [React] Visual Studio Code에서 Github 활용 필수 기본 정리 - 깃헙에 업로드 하기, 클론
    sean.jin
    sean.jin
    앱개발, 알고리즘, JS, Kotlin, 미국 취업준비

    티스토리툴바