Skip to content

Instantly share code, notes, and snippets.

Zoltan Kochan zkochan

View GitHub Profile
View gist:a4fd0ffee491caa4b1d4
exports.knex = require('knex')({
client: 'mysql',
connection: {
host : '',
user : 'your_database_user',
password : 'your_database_password',
database : 'myapp_test',
charset : 'utf8'
zkochan / gist:3de6ec2e1b00dd95a43b
Created Jan 6, 2015
Node-inspector exception when running it against ActionHero on Windows
View gist:3de6ec2e1b00dd95a43b
debugger listening on port 5858
basedir=`dirname “$0"`
SyntaxError: Unexpected token ILLEGAL
View gist:5a6e2a8c9cd33f8d3dc5
node —debug ./node_modules/.bin/actionHero start
View gist:ef7ed4279ba8b29d21b9
node —debug ./node_modules/actionHero/bin/actionHero start
View gist:d33477421e88f316a229
var knex = require('knex');
exports.knex = function (api, next) {
api.knex = knex(api.configData.mySql);
View gist:9405c15b7710326ef08c
configData.mySql = {
database: 'actionHero',
username: 'root',
password: 'root',
host: '',
port: 3306,
View gist:a3b8463637e0084bc022
$ npm install knex@0.6 --save
# Then add one of the following (adding a --save) flag:
$ npm install mysql
$ npm install mariasql
$ npm install pg
$ npm install sqlite3
View gist:4a721867fe7f282fdf5f
gyp ERR! stack Error: Python executable “python” is v3.4.1, which is not supported by gyp.
View gist:80c3fd72adb552f94b8c
‘pg_config’ is not recognized as an internal or external command,
operable program or batch file.
gyp: Call to ‘pg_config —includedir’ returned exit status 1. while trying to load binding.gyp
View gist:49c4e4a2ee238f451b51
./node_modules/.bin/actionhero generateInitializer —name=knex
You can’t perform that action at this time.