Skip to content
deprecated. go https://scrapbox.io
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
public/dist
src
.babelrc
.eslintrc.json
.gitignore
README.md
circle.yml
package.json
run-server.js
sample.env

README.md

semirara

Circle CI

Requirements

  • Node.js
  • Memcached
  • MongoDB

Setup

Register new app on GitHub

% cp sample.env .env
% npm install

Develop

% npm run watch
% npm run start:dev

Deploy

% NODE_ENV=production npm start

Deploy on Heroku

create app

% heroku apps:create [app_name]
% git push heroku master

config

% heroku config:add TZ=Asia/Tokyo
% heroku config:set "DEBUG=semirara*,koa*"
% heroku config:set NODE_ENV=production
% heroku config:set GITHUB_CLIENT_ID=your-client-id
% heroku config:set GITHUB_CLIENT_SECRET=your-client-secret

enable MongoDB plug-in

% heroku addons:create mongolab
# or
% heroku addons:create mongohq

enable Memcached plug-in

% heroku addons:create memcachier

logs

% heroku logs --num 300
% heroku logs --tail
You can’t perform that action at this time.