This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function formatUrl(path) { | |
const adjustedPath = path[0] !== '/' ? '/' + path : path; | |
if (__SERVER__) { | |
// Prepend host and port of the API server to the path. | |
return 'http://localhost:' + config.apiPort + adjustedPath; | |
} | |
// Prepend `/api` to relative URL, to proxy to API server. | |
return '/api' + adjustedPath; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rob@rmint ~/dev/react-redux-universal-hot-example $ git commit -m 'package json wasnt saved' | |
On branch master | |
Your branch and 'origin/master' have diverged, | |
and have 1 and 38 different commits each, respectively. | |
(use "git pull" to merge the remote branch into yours) | |
Changes not staged for commit: | |
modified: package.json | |
modified: src/server.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Nov 03 12:51:02 lit-cove-9308 heroku/web.1: State changed from crashed to starting | |
Nov 03 12:51:07 lit-cove-9308 heroku/web.1: Starting process with command `npm start` | |
Nov 03 12:51:10 lit-cove-9308 app/web.1: > react-redux-universal-hot-example@0.0.5 start /app | |
Nov 03 12:51:10 lit-cove-9308 app/web.1: > concurrent --kill-others "npm run start-prod" "npm run start-prod-api" | |
Nov 03 12:51:13 lit-cove-9308 app/web.1: [1] | |
Nov 03 12:51:13 lit-cove-9308 app/web.1: [1] > react-redux-universal-hot-example@0.0.5 start-prod-api /app | |
Nov 03 12:51:13 lit-cove-9308 app/web.1: [1] > node ./node_modules/better-npm-run start-prod-api | |
Nov 03 12:51:13 lit-cove-9308 app/web.1: [1] | |
Nov 03 12:51:13 lit-cove-9308 app/web.1: [1] running better-npm-run in /app | |
Nov 03 12:51:13 lit-cove-9308 app/web.1: [1] Executing script: start-prod-api |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
handleSubmit = (event) => { | |
event.preventDefault(); | |
const input = this.refs.username; | |
this.props.login(input.value); | |
input.value = ''; | |
} | |
render() { | |
const {user, logout} = this.props; | |
const styles = require('./Login.scss'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by rob on 11/18/15. | |
*/ | |
import React, {Component, PropTypes} from 'react'; | |
import {connect} from 'react-redux'; | |
import * as reportActions from 'redux/modules/reporting'; | |
import {isLoaded, load} from 'redux/modules/reporting'; | |
import connectData from 'helpers/connectData'; | |
import { ReportItem } from 'components'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by rob on 11/18/15. | |
*/ | |
import React, {Component, PropTypes } from 'react'; | |
export default class ReportItem extends Component { | |
static propTypes = { | |
entry: PropTypes.object.isRequired | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rob@rmint ~/dev/fix $ knex | |
No command 'knex' found, did you mean: | |
Command 'nex' from package 'nvi' (universe) | |
knex: command not found |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rob@rmint ~/dev/fix $ echo $PATH | |
/usr/local/heroku/bin:~/npm-global/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rob@rmint ~/dev/fix $ npm install -g knex | |
npm ERR! Linux 3.16.0-38-generic | |
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "knex" | |
npm ERR! node v4.2.2 | |
npm ERR! npm v2.14.7 | |
npm ERR! path /usr/local/bin/lib/node_modules/knex/LICENSE | |
npm ERR! code EACCES | |
npm ERR! errno -13 | |
npm ERR! syscall unlink |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rob@rmint ~/dev/fix $ tree -L 3 ~/npm-global | |
/home/rob/npm-global | |
├── bin | |
│ ├── bower -> ../lib/node_modules/bower/bin/bower | |
│ ├── grunt -> ../lib/node_modules/grunt-cli/bin/grunt | |
│ ├── jshint -> ../lib/node_modules/jshint/bin/jshint | |
│ ├── karma -> ../lib/node_modules/karma-cli/bin/karma | |
│ ├── n -> ../lib/node_modules/n/bin/n | |
│ ├── webpack -> ../lib/node_modules/webpack/bin/webpack.js | |
│ └── webpack-dev-server -> ../lib/node_modules/webpack-dev-server/bin/webpack-dev-server.js |
OlderNewer