我係 Facebook Developer 個到
開左個新 Facebook Apps, click Cloud Service
開左個 heroku acc
之後發覺原來可以安 wordpress
安 wordpress
睇左香港達人既教學 http://reality-wordpress.herokuapp.com/
做做下發覺有問題
push 唔到上去
原來要加番 heroku 個 app-name 上去>git push heroku master fatal: 'heroku' does not appear to be a git repository fatal: The remote end hung up unexpectedly
再 push 就 ok>git remote add heroku git@heroku.com:app-name.git
>git push heroku master
Warning: Permanently added the RSA host key for IP address '50.19.85.156' to the
list of known hosts.
Counting objects: 1043, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (1020/1020), done.
Writing objects: 100% (1043/1043), 3.59 MiB | 1.09 MiB/s, done.
Total 1043 (delta 67), reused 0 (delta 0)
-----> Heroku receiving push
-----> PHP app detected
-----> Bundling Apache v2.2.19
-----> Bundling PHP v5.3.6
-----> Discovering process types
Procfile declares types -> (none)
Default types for PHP -> web
-----> Compiled slug size is 24.9MB
-----> Launching... done, v5
http://hksiusun-wordpress.herokuapp.com deployed to Heroku
To git@heroku.com:hksiusun-wordpress.git
* [new branch] master -> master
之後去http://hksiusun-wordpress.herokuapp.com 安番個 wordpress要睇 番個 database username password
>heroku config --app hksiusun-wordpress DATABASE_URL => postgres://username:password@host/database SHARED_DATABASE_URL => postgres://username:password@host/database
玩左一輪之後, 最後成功!!!
安完之後再search, 先見到有 git version wordpress
https://github.com/mhoofman/wordpress-heroku#readme
detail 英文教學
http://young-journey-5257.herokuapp.com/
detail 中文教學
http://yapeshu.invenio.us/2011/10/web-heroku-wordpress.html
same post at demo site
http://hksiusun-wordpress.herokuapp.com/
Comments:
blog comments powered by Disqus