Node.js - HiroSung/Study GitHub Wiki
-
Learning Portal > node.js 강의 검색 하여 'Node.js 입문 및 문법' 동영상 강의 (https://mylearning.skcc.com/biz/userContent/detail?contentId=CN-008Q&year=2018&depth1=CA-0001&depth2=CA-0001-0002&menuId=HRD-BIZ-M08-01-02 )
-
설치모듈
- nodeclipse 설치
- Heroku (클라우드 서버)
- Heroku toolbelt 설치 : http://toolbelt.heroku.com
- Git-scm 설치 https://git-scm.com/download/win
-
서버에 올리기
P047548@TMISP047548 MINGW64 /c/PData/myApp node hello Server running at http://127.0.0.1:1337/ P047548@TMISP047548 MINGW64 /c/PData/myApp git init P047548@TMISP047548 MINGW64 /c/PData/myApp git add . P047548@TMISP047548 MINGW64 /c/PData/myApp git commit -m "init heroku" *** Please tell me who you are. Run git config --global user.email "[email protected]" git config --global user.name "Your Name" to set your account's default identity. Omit --global to set the identity only in this repository. fatal: empty ident name (for ) not allowed P047548@TMISP047548 MINGW64 /c/PData/myApp git config --global user.email "[email protected]" P047548@TMISP047548 MINGW64 /c/PData/myApp git config --global user.name "HiroSung" P047548@TMISP047548 MINGW64 /c/PData/myApp git init P047548@TMISP047548 MINGW64 /c/PData/myApp git commit -m "init heroku" [master (root-commit) 415ef06] init heroku 3 files changed, 25 insertions(+) create mode 100644 hello.js create mode 100644 package.json create mode 100644 profile ----- C:\PData\myApp 디렉터리 2018-07-28 오후 03:45. 2018-07-28 오후 03:45 .. 2018-07-26 오후 09:45 254 hello.js 2018-07-28 오후 03:40 372 package.json 2018-07-28 오후 03:42 18 profile 3개 파일 644 바이트 2개 디렉터리 49,942,974,464 바이트 남음 C:\PData\myApp>heroku login heroku: Enter your login credentials Email: [email protected] Password: *********** Logged in as [email protected] C:\PData\myApp>heroku create Creating app... done, ⬢ peaceful-headland-76529 https://peaceful-headland-76529.herokuapp.com/ | https://git.heroku.com/peaceful -headland-76529.git C:\PData\myApp>heroku apps === [email protected] Apps peaceful-headland-76529 C:\PData\myApp>git push heroku master Enumerating objects: 5, done. Counting objects: 100% (5/5), done. Delta compression using up to 4 threads. Compressing objects: 100% (4/4), done. Writing objects: 100% (5/5), 721 bytes | 180.00 KiB/s, done. Total 5 (delta 0), reused 0 (delta 0) remote: Compressing source files... done. remote: Building source: remote: remote: -----> Node.js app detected remote: remote: -----> Creating runtime environment remote: remote: NPM_CONFIG_LOGLEVEL=error remote: NODE_VERBOSE=false remote: NODE_ENV=production remote: NODE_MODULES_CACHE=true remote: remote: -----> Installing binaries remote: engines.node (package.json): unspecified remote: engines.npm (package.json): unspecified (use default) remote: remote: Resolving node version 8.x... remote: Downloading and installing node 8.11.3... remote: Using default npm version: 5.6.0 remote: remote: -----> Restoring cache remote: Skipping cache restore (not-found) remote: remote: -----> Building dependencies remote: Installing node modules (package.json) remote: up to date in 0.075s remote: remote: -----> Caching build remote: Clearing previous node cache remote: Saving 2 cacheDirectories (default): remote: - node_modules (nothing to cache) remote: - bower_components (nothing to cache) remote: remote: -----> Pruning devDependencies remote: Skipping because npm 5.6.0 sometimes fails when running 'npm prun e' due to a known issue remote: https://github.com/npm/npm/issues/19356 remote: remote: You can silence this warning by updating to at least npm 5.7.1 in your package.json remote: https://devcenter.heroku.com/articles/nodejs-support#specifying-a n-npm-version remote: remote: -----> Build succeeded! remote: ! This app may not specify any way to start a node process remote: https://devcenter.heroku.com/articles/nodejs-support#default-web- process-type remote: remote: -----> Discovering process types remote: Procfile declares types -> (none) remote: Default types for buildpack -> web remote: remote: -----> Compressing... remote: Done: 17.2M remote: -----> Launching... remote: Released v3 remote: https://peaceful-headland-76529.herokuapp.com/ deployed to Heroku remote: remote: Verifying deploy... done. To https://git.heroku.com/peaceful-headland-76529.git * [new branch] master -> master C:\PData\myApp>