Skip to content

Commit

Permalink
Updated css handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
kallaspriit committed Aug 10, 2016
1 parent be86946 commit 6efd1eb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
17 changes: 13 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,16 @@
**Mobile-friendly web application for displaying data from Cumulocity IoT platform.**

## Tasks
- ```npm start``` - starts the hot-reloaded dev server.
- ```npm build``` - builds the production version in "dist" folder.
- ```npm server``` - serves the production version from the "dist" folder.
- ```npm lint``` - lints the codebase for errors.
- `npm start` - starts the hot-reloaded dev server.
- `npm build` - builds the production version in "dist" folder.
- `npm server` - serves the production version from the "dist" folder.
- `npm lint` - lints the codebase for errors.

## Setting up pm2
You can use pm2 to serve the production version in your server.
- `npm i -g pm2` - installs pm2 globally.
- `pm2 install pm2-logrotate` - installs pm2 logrotate.
- `pm2 set pm2-logrotate:max_size 10M` - configure logrotate max size.
- `pm2 set pm2-logrotate:retain 7` - configure logrotate retention.
- `pm2 set pm2-logrotate:interval_unit DD` - configure logrotate interval.
- `pm2 start scripts/server.js -- name iot --interpreter ./node_modules/.bin/babel-node` - start the server.
4 changes: 3 additions & 1 deletion views/RootView.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ import React, { Component, PropTypes } from 'react';
import injectTapEventPlugin from 'react-tap-event-plugin';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import css from '../gfx/css/main.scss'; // eslint-disable-line no-unused-vars
import DrawerMenuComponent from './components/DrawerMenuComponent';
import CumulocityPlatform from '../src/CumulocityPlatform';
import themeConfig from '../config/theme-config';
import cumulocityConfig from '../config/cumulocity-config';
import platformApi from '../apis/platform-api';

// require stylesheet
require('../gfx/css/main.scss');

// use tap events
injectTapEventPlugin({
shouldRejectClick: (lastTouchEventTimestamp, clickEventTimestamp) => {
Expand Down

0 comments on commit 6efd1eb

Please sign in to comment.