Deploy a Express.js project on Heroku
Step by step from command line by Michael Hsu
$ express myfirstexpress && cd myfirstexpress
Step by step from command line by Michael Hsu
$ express myfirstexpress && cd myfirstexpress
Step by step from command line by Michael Hsu
$ git clone https://github.com/dreamerslab/express-todo-example.git mongolab-todo-list
http://ggd.github.com/blog/2012/07/20/deploy-rails-3-with-apache-mysql-passenger-capistrano-to-ec2/ | |
http://nathanhoad.net/how-to-ruby-on-rails-ubuntu-apache-with-passenger | |
#ruby : | |
sudo apt-get install ruby1.9.1-full | |
#simple compiler | |
sudo apt-get install build-essential | |
#mysql | |
sudo apt-get install mysql-server mysql-common mysql-client libmysqlclient-dev | |
#ruby mysql adapter |
$ cd project_folder $ git init $ git add . $ git commit -a -m 'init' $ git remote add github https://github.com/evenchange4/101-1_MMP_HW1_Calculator.git $ git remote -v $ git pull github master $ git push github master
web: node server.js |
# encoding: UTF-8 | |
require 'uri' | |
require 'feedzirra' | |
require 'open-uri' | |
class LivefeedController < ApplicationController | |
def livefeed | |
q = '宏達電' | |
url = URI.escape("https://news.google.com/news/feeds?q="+q+"&output=rss&num=90") | |
class AbstractNode | |
@@root = nil | |
def initialize(n, keys, parent) | |
@slot = n | |
@keys = keys | |
@parent = parent | |
@@root = self unless @@root | |
end |