Skip to content

Latest commit

 

History

History
71 lines (49 loc) · 1.03 KB

heroku.md

File metadata and controls

71 lines (49 loc) · 1.03 KB
description
heroku adalah tool untuk deploy static site ke Heroku.

Heroku

Instalasi

Dengan menggunakan npm

npm install -g heroku

Untuk cara install alternatif bisa mengikuti langkahnya lewat panduan ini.

Perintah umum

Untuk bantuan ketik heroku help.

Update program

heroku update

Pre-deploy

Bagian ini adalah persiapan sebelum deploy ke Heroku. Jalankan command dalam folder project.

heroku login

Untuk project yang git repository-nya belum aktif, lakukan langkah berikut.

git init
heroku git:remote -a <NAMA_PROJECT>

Yang sudah aktif, gunakan langkah ini.

heroku git:remote -a <NAMA_PROJECT>

Deploy/update ke Heroku

git add .
git commit -am "Initial commit"
git push heroku master

Buildpacks yg tersedia

heroku/nodejs
heroku/python
heroku/php
heroku/ruby
heroku/java
heroku/go
heroku/gradle
heroku/scala
heroku/clojure