Skip to content

Instantly share code, notes, and snippets.

View devdemi's full-sized avatar

Dmytro Shylovskyi devdemi

View GitHub Profile
- **Dmytro Shylovskyi** CTO/CPO
- **Max Babych** Lead Frontend Developer
- **Olexander Bondarchuk** Full Stack Developer
- **Vyacheslav Karpovych** Full Stack Developer
- **Max Popov** Lead Backend Developer
- **Pavel Shchokin** DevOps
- **Vova Lapshin** Full Stack Developer
- **Artur Borikun** Full Stack Developer
- **Dmtyro Kyrilkov** Lead QA Engineer
- **Antonina Sviderska** QA Engineer
FROM buildpack-deps:jessie
# gpg keys listed at https://github.com/nodejs/node
RUN set -ex \
&& for key in \
94AE36675C464D64BAFA68DD7434390BDBE9B9C5 \
FD3A5288F042B6850C66B31F09FE44734EB7990E \
71DCFD284A79C3B38668286BC97EC7A07EDE3FC1 \
DD8F2338BAE7501E3DD5AC78C273792F7D83545D \
B9AE9905FFD7803F25714661B63B535A4C206CA9 \
FROM fe-image
# Create app directory
RUN mkdir -p /usr/src/fastboot
WORKDIR /usr/src/fastboot
RUN cd /usr/src/fe && ember build
RUN cp -rs /usr/src/fe/dist /usr/src/fastboot/dist
RUN cd /usr/src/fastboot/dist
@devdemi
devdemi / package.json
Created September 7, 2017 07:58
Generated package.json
{
"dependencies":{
"moment":"^2.18.1",
"moment-timezone":"~0.5.11",
"node-fetch":"^1.3.3"
},
"fastboot":{
"appConfig":{
"APP":{
"apiNamespace":"api/v1",
-rw-r--r-- 1 root root 51 Mar 27 18:08 README.md
drwxr-xr-x 2 root root 4096 Mar 27 18:08 css
-rw-r--r-- 1 root root 1875 Mar 27 18:08 date.html
-rw-r--r-- 1 root root 2478 Mar 27 18:08 describe.html
-rw-r--r-- 1 root root 9772 Mar 27 18:08 edit-profile.html
drwxr-xr-x 5 root root 4096 Mar 27 18:08 fonts
-rw-r--r-- 1 root root 1373 Mar 27 18:08 gulpfile.js
drwxr-xr-x 3 root root 4096 Mar 27 18:08 images
drwxr-xr-x 2 root root 4096 Mar 27 18:08 js
-rw-r--r-- 1 root root 6827 Mar 27 18:08 lesson-with-empty.html
var config = require('./config')
var redis1 = require("redis").createClient(config.redis.port, config.redis.host);
redis1.auth(config.redis.auth);
var subscribe = require("redis").createClient(config.redis.port, config.redis.host);
subscribe.auth(config.redis.auth);
var app = require('http').createServer(handler)
, io = require('socket.io').listen(app);