建立 Hello World 網站

最後編輯:2017-07-01 建立:2017-06-29 歷史紀錄

 

RONNY W這裡會一步一步教你如何在 Middle2 架設出第一個 Hello World 網站出來

 

    RONNY W需要基礎知識

  • RONNY Wgit 基本操作 (git push, git pull, git commit ...)
    • 可參考 https://git-scm.com/docs/gittutorial
  • git 設定 ssh keys
    • 可參考 https://help.github.com/articles/connecting-to-github-with-ssh/

 

    RONNY W步驟

  • RONNY W先登入帳號
    • https://try.middle2.com/ 可以自由註冊帳號試用
  • 確定 SSH keys 已經加入了
  • 按下 Add Project (Project note 只是備註用,可以不輸入)
  • 點進去新增的 project 名稱
  • deployment 區可以看到 git 的位址,會像是 git@try.middle2.com:matsu-huang-478815 ,後面是你的專案代碼
  • 把你的程式碼推上去,各種語言範例如下
    • PHP: https://github.com/middle2tw/helloworld-php/
    • NodeJS: https://github.com/middle2tw/helloworld-nodejs
    • Ruby: https://github.com/middle2tw/helloworld-ruby
    • Python: https://github.com/heroku/python-getting-started (借 Heroku 範例)
  • 推完後,push 訊息會提供成果網址 http://[專案代碼].try.middle2.me/,連入就可以看到結果了