發表文章

目前顯示的是有「Heroku」標籤的文章

Heroku + Bootstrappers 快速佈署

Using `bootstrappers` to create an App $: bootstrappers <App> $: cd <App> $: git init $: git add . $: git commit -m 'Init' Modify Gemfile group :production do gem ‘pg' gem 'rails_12factor' end Update bundles with... $: bundle Deploy to Heroku $: heroku create <AppName> $: git push heroku master $: heroku run rake db:migrate $: heroku open => Check site.

如何在 Heroku 設定自己的網域 (以 PcHome 為例)

圖片
Pchome 設定:   1. 更改 DNS 設定,參考下圖連結,進入網頁   2. 在表單中新增一筆 CNAME 紀錄,如下圖的 quic,並且指定地址為 example.herokuapp.com. , example 是你的 App 名稱,而且 地址最後務必加上一個「.」 Heroku 設定:   1. 在 Setting 頁面,找到 Domain 欄位,點擊 "Edit" 後會跳出新增 Domain Name 的表單如下,編輯完按下 「+」,然後儲存即可! 設定很簡單,而且建立後馬上生效!