기본 콘텐츠로 건너뛰기

라벨이 openShift인 게시물 표시

openshift 에 nodebb 를 올려보자.

rhc 그러니까 옛날 버전 기준이다. 요즘껀 도대체 뭐가 뭔지 모르겠어. 잊지 않겠다 Kubernetes.. o>< rhc app create --no-scaling nodebb https://raw.githubusercontent.com/icflorescu/openshift-cartridge-nodejs/master/metadata/manifest.yml rhc cartridge add https://raw.githubusercontent.com/icflorescu/openshift-cartridge-mongodb/master/metadata/manifest.yml -a nodebb https://github.com/icflorescu/openshift-cartridge-nodejs/issues/55 참조. node.js 버전을 지정하려면 semver.io를 참조. NODE_VERSION_URL 환경 변수도 바꿔줘야한다. rhc env set -a [어플리케이션 이름] NODE_VERSION_URL=https://semver.io/node/resolve/4 (https://semver.io/node 가 안정버전, https://semver.io/node/unstable 이 최신이다) 일단, NODE_VERSION_URL 을 지정하지 않았으므로 최신(unstable) node.js 설치를 할거다. app create를 하면 nodebb 디렉토리를 만드는데 cd nodebb git remote add upstream -m master https://github.com/NodeBB/NodeBB.git rm -rf `ls` .eslintrc && git commit -a -m 'Cleaned up for NodeBB' git pull --no-edit -s recursive -X theirs upstream master 순으로 하자. upstream에서 가져올 때 ...

cloudflare+openshift 조합으로 무료 node.js https 서버 구축하기

요즘은 *.meteor.com 호스팅도 없어지고 기존 서비스들이 무료로 쓰기엔 시간 제한 같은 것들이 생겨서 간단하게 뭔가 만들어 보여주는 목적으로 쓸만한게 점점 줄어들고 있다. 하지만, 대인배 RedHat에선 PaaS 를 아직 무료로 제공하고 있다. https://www.openshift.com/pricing/plan-comparison.html 24시간동안 놀리고 있지만 않으면 된다. 이거야 방법이 여러가지 있으니 생략하고. 일단 만들어 본다. 가입하고 https://openshift.redhat.com/app/console/applications  를 접근하면 새로운 앱을 만들 수 있다. 무료 계정은 Gear 라는 것을 3개까지 쓸 수 있는데 node.js / python 같은 언어도 1개. DB도 1개. jenkins도 1개씩 먹으니 잘 생각해서 계획을 짜야한다. 가령, node.js와 mongoDB를 각각 선택하면 2 gear를 사용하지만 둘을 합친 MEAN 을 사용하면 1gear만 사용한다. 대신, MEAN은 node.js/mongoDB 버전이 낮으므로 ecma2016이나 wiredTiger같은 최신 기술을 사용할 수 없다. 내 경우는 일반 js를 쓰는 것이 너무 괴로와서  https://github.com/icflorescu/openshift-cartridge-nodejs  커스텀 카트릿지로 생성했다. 그리고 이건 P짱O꿀W꿀E팁R! 인데 생성 후 https://openshift.redhat.com/app/console/applications 에서 방금 생성한 node.js 앱을 선택 후 해당 앱 상세에서 Or, see the entire list of cartridges you can add 이 부분을 클릭. Choose a cartridge to add to your application. 화면에서 맨 아래로 스크롤 한 뒤. Install your own cartridge 에서 텍...