Skip to content

Instantly share code, notes, and snippets.

@jhjguxin
Last active December 26, 2015 23:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jhjguxin/7233706 to your computer and use it in GitHub Desktop.
Save jhjguxin/7233706 to your computer and use it in GitHub Desktop.
ghost with heroku

ghost with heroku

install heroku

wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh

heroku login

get ghost

sign in ghost.org download source code and

wget https://ghost.org/zip/ghost-0.3.3.zip && unzip ghost-0.3.3.zip -d ghost

run wtih local

Install Node Either download the .tar.gz archive from http://nodejs.org, or you may prefer to follow the instructions on how to install from a package manager instead. Double check that you have Node and npm installed by typing node -v and npm -v into a terminal window

sudo apt-get update
sudo apt-get install python-software-properties python g++ make
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
npm install
npm start

push to heroku

$ git init
$ git add .
$ git commit -m "init"
$ heroku create
$ git push heroku master

Fuck GFW

prefer to http://ruby-china.org/topics/10813

http://stackoverflow.com/questions/4269922/permission-denied-publickey-when-deploying-heroku-code-fatal-the-remote-end

ssh -v git@heroku.com # choose one you can use
# ~/.ssh/config
Host heroku.com
User freemember007
Hostname 107.21.95.3
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
port 22


heroku keys:add ~/.ssh/id_rsa.pub

http://darklipeng.iteye.com/blog/1370360

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment