Cmder For Express and heroku
Video¶
This is a guide about use Cmder For Sublime for Express + heroku + git development.
Prepare¶
- install nodejs
- install git
- install heroku cli
express¶
install¶
express:install
npm install express express-generator nodemon -g
express project init¶
express:init
npm install¶
npm install
express run¶
express:nodemon:run
or
express:nodemon:run:change_port
http://localhost:3000
heroku¶
heroku:login¶
heroku:login
creates a new app¶
heroku:create
git init¶
git:init
git init
Initialize a git repository in a new or existing directory¶
heroku:git:remote
git:add:all¶
git:add:all
push heroku project to master¶
heroku:git:push_heroku_to_master
open the heroku app in a web browser¶
heroku:open
tail heroku logs¶
heroku:logs:tail
heroku:logout¶
heroku:logout
git¶
git init¶
git:init
git init
git:remote:add:origin¶
git:remote:add:origin
git:add and git:push¶
git:add
git:push:origin_to_master
version control¶
change sorce¶
git:add and git:push¶
git:log¶
git:log:pretty
git:log:pretty:graph
git:log:pretty:n
git:log:pretty:graph:n
[2019-06-20 00:29:07][info] ******************************************************************************** * c8ad857 [2019/06/19 23:32:28] init express project (HEAD -> master, heroku/master) [exiahuang] [2019-06-20 00:29:07][info] ********************************************************************************