Commit 99d6ae0d authored by priit's avatar priit

Wrapperi statistika

parent 89ee9bb1
FROM ubuntu:14.04
MAINTAINER priit@bitweb.ee
RUN apt-get update && \
apt-get -y install curl && \
curl -sL https://deb.nodesource.com/setup | sudo bash - && \
apt-get -y install python build-essential nodejs
# Provides cached layer for node_modules
ADD package.json /tmp/package.json
RUN cd /tmp && npm install && npm install -g forever
RUN mkdir -p /src && cp -a /tmp/node_modules /src/
# Define working directory
WORKDIR /src
ADD . /src
# Expose port
EXPOSE 3000
VOLUME ["/wrapper"]
# Run app using forever
CMD ["forever", "/src/app.js"]
\ No newline at end of file
......@@ -34,7 +34,5 @@ var config = require('./wrapper_configs/global');
//config.serverUrl = 'http://dev.bitweb.ee';
//config.wrapper = config.availableWrappers.<WRAPPERKEY>; //eg config.wrapper = config.availableWrappers.TOKENIZER;
//config.wrapper.command.commandTemplate = 'python /home/priit/Programs/KEELELIIN/pyutil/tokenizer.py -i [data] -o [outputPath1]';
//config.fs.storagePath = "/home/priit/wrapper";
//config.fs.tmpPath = "/tmp/wrapper/";
module.exports = config;
\ No newline at end of file
var config = {};
config.redis = {
host: "127.0.0.1",
port: 6379
host: process.env.REDIS_PORT_6379_TCP_ADDR || "127.0.0.1",
port: process.env.REDIS_PORT_6379_TCP_PORT || 6379
};
config.serverUrl = 'http://dev.bitweb.ee';
......@@ -13,8 +13,8 @@ config.integration = {
};
config.fs = {
storagePath: "/var/www/bitweb.ee/keeleliin.bitweb.ee/wrapper/tmp",
tmpPath: "/tmp/wrapper/"
storagePath: "/wrapper/files",
tmpPath: "/wrapper/tmp"
};
config.paramUsageTypes = {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment