This file contains hidden or 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
| exports.knex = require('knex')({ | |
| client: 'mysql', | |
| connection: { | |
| host : '127.0.0.1', | |
| user : 'your_database_user', | |
| password : 'your_database_password', | |
| database : 'myapp_test', | |
| charset : 'utf8' | |
| } | |
| }); |
This file contains hidden or 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
| debugger listening on port 5858 | |
| C:\node-dev\actionHero-tutorial\node_modules\.bin\actionHero:2 | |
| basedir=`dirname “$0"` | |
| ^ | |
| SyntaxError: Unexpected token ILLEGAL |
This file contains hidden or 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
| node —debug ./node_modules/.bin/actionHero start |
This file contains hidden or 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
| node —debug ./node_modules/actionHero/bin/actionHero start |
This file contains hidden or 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
| var knex = require('knex'); | |
| exports.knex = function (api, next) { | |
| api.knex = knex(api.configData.mySql); | |
| next(); | |
| } |
This file contains hidden or 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
| configData.mySql = { | |
| database: 'actionHero', | |
| username: 'root', | |
| password: 'root', | |
| host: '127.0.0.1', | |
| port: 3306, | |
| } |
This file contains hidden or 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
| $ 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 |
This file contains hidden or 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
| gyp ERR! stack Error: Python executable “python” is v3.4.1, which is not supported by gyp. |
This file contains hidden or 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
| ‘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 |
This file contains hidden or 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
| ./node_modules/.bin/actionhero generateInitializer —name=knex |
OlderNewer