Cmder For Express and heroku

Posted by ExiaHuang on June 19, 2019

Video

This is a guide about use Cmder For Sublime for Express + heroku + git development.

Prepare

express

install

express:install

1
npm install express express-generator nodemon -g

express project init

express:init

npm install

1
npm install

express run

express:nodemon:run or express:nodemon:run:change_port

http://localhost:3000

heroku

Heroku-Command

heroku:login

heroku:login

creates a new app

heroku:create

git init

git:init

1
git init

Git-Command

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

1
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

1
2
3
[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] ********************************************************************************

Git-Command