반응형
Heroku Cli 설치가 완료된 상태를 기준으로 합니다. 커맨드는 계속해서 추가 할 예정입니다.
1. heroku
VERSION
heroku/7.59.0 win32-x64 node-v14.17.2
USAGE
$ heroku [COMMAND]
COMMANDS
access manage user access to apps
addons tools and services for developing, extending, and operating your app
apps manage apps on Heroku
auth check 2fa status
authorizations OAuth authorizations
autocomplete display autocomplete installation instructions
buildpacks scripts used to compile apps
certs a topic for the ssl plugin
ci run an application test suite on Heroku
clients OAuth clients on the platform
config environment variables of apps
container Use containers to build and deploy Heroku apps
domains custom domains for apps
drains forward logs to syslog or HTTPS
features add/remove app features
git manage local git repository for app
help display help for heroku
keys add/remove account ssh keys
labs add/remove experimental features
local run Heroku app locally
logs display recent log output
maintenance enable/disable access to app
members manage organization members
notifications display notifications
orgs manage organizations
pg manage postgresql databases
pipelines manage pipelines
plugins list installed plugins
ps Client tools for Heroku Exec
psql open a psql shell to the database
redis manage heroku redis instances
regions list available regions for deployment
releases display the releases for an app
reviewapps manage reviewapps in pipelines
run run a one-off process inside a Heroku dyno
sessions OAuth sessions
spaces manage heroku private spaces
status status of the Heroku platform
teams manage teams
update update the Heroku CLI
webhooks list webhooks on an app
heroku cli의 command의 종류와 설명을 해줍니다.
2. heroku login
나의 app에 접근하기 위해서 가장 먼저 해야할 command. heroku login을 입력하고 q를 제외한 키를 누르면 헤로쿠 로그인 페이지로 넘어갑니다. 브라우저에서 로그인을 완료하면 이메일과 같이 로그인되었다고 나옵니다.
3. heroku apps
내가 만든 앱들의 리스트를 보여줍니다. 다음 링크에서 볼 수있는 리스트와 같습니다. app에 관한 커맨드를 입력할 때 정확한 앱의 이름이 필요하니 웹에서나 cmd에서 확인한 후 정확하게 입력해야 합니다.
Heroku
dashboard.heroku.com
4. heroku run bash -a <APP 이름>
해당 앱의 서버에 접속합니다. 그 후에는 리눅스 기반의 명령어로 서버에서 작업할 수 있습니다.
5. heroku logs --tail -a <APP 이름>
해당 앱의 로그를 보여줍니다. 로그에서는 요청을 한 시간, 상태코드, path, protocol 등을 보여줍니다. 만약 서버에서 에라가 났다면 ERROR의 종류, 설명 등도 보여줍니다.
반응형
댓글