Skip to content

Instantly share code, notes, and snippets.

View canujohann's full-sized avatar

johann canu canujohann

  • Axa Life Insurance
  • Tokyo
View GitHub Profile

#How you get Sail.js running on Openshift#

This instruction is tested with:

  • Sails.js v0.9.16
  • Node.js 0.10 on Openshift ( 05 May 2014)

###1) package.json

If you use the package.json build by sails new Projectname than you have to add a few fields for openshift – so the server can start you app automatically. Sails uses Grunt to build minify css/js and so on. Openshift dont have grunt installed so you have to add this also.

/* Small Devices, Tablets */
@media only screen and (max-width : 768px) {
.animated {
/*CSS transitions*/
-o-transition-property: none !important;
-moz-transition-property: none !important;
-ms-transition-property: none !important;
-webkit-transition-property: none !important;
transition-property: none !important;
/*CSS transforms*/
@canujohann
canujohann / observable-webview.md
Created January 27, 2016 02:25
observable-webview
@canujohann
canujohann / swift-memo.md
Last active February 23, 2016 01:00
swift メモ
Functions definition
func someFunction(a: Int) { /* ... */ }
Tuples definition
@canujohann
canujohann / heroku-maintenance-mode.md
Last active October 6, 2015 04:52
ホストの全てのリクエストをメンテナンスページに移動(heroku)

herokuアプリ作成

heroku create my-maintenance-project

プロジェクトをclone

cd my_path
@canujohann
canujohann / flyway.md
Last active September 18, 2015 01:42
Basic commands for flyway

File format

V1__CreatexxForBaseline.sql

Simple migration

./flyway migrate
@canujohann
canujohann / online-marketing-definition.md
Last active October 15, 2015 08:10
online-marketing-definition.md

コスト

CPA Cost Per Acquisition/ Action

CPC Cost Per Click

  • CPAコストよりも広告料金が発生しやすく低額に設定される傾向。

CPD Cost Per Duration

s3fs + s3 sync

Mount avec s3fs

/usr/bin/s3fs s3.mydomain.com /my_folder_to_mount/ -o allow_other

unmount

@canujohann
canujohann / asw-summit-2015-06.md
Created June 2, 2015 07:36
asw-summit-2015-06.md

AWS summit

Github CEO (Scott Chacon)

[email protected]

Large companies use open source (OS)

@canujohann
canujohann / tomcat-log.md
Created April 16, 2015 09:12
tomcatのログ設定

アクセスログ

server.xml

<Context path="/sampleAP" docBase="/home/sample/webapp">
  <Valve className="org.apache.catalina.valves.AccessLogValve" 
         directory="/home/sample/log"
         prefix="access-"
         fileDateFormat="yyyy-MM-dd"