Skip to content

Instantly share code, notes, and snippets.

View dclarke-modus's full-sized avatar

dclarke-modus

View GitHub Profile
MacBook-Pro:techstack deanclarke$ vagrant up
Bringing machine 'web' up with 'virtualbox' provider...
Bringing machine 'api' up with 'virtualbox' provider...
==> web: Importing base box 'joomlatools/box'...
==> web: Matching MAC address for NAT networking...
==> web: Checking if box 'joomlatools/box' is up to date...
==> web: Setting the name of the VM: techstack_web_1497247379834_70806
==> web: Clearing any previously set network interfaces...
==> web: Preparing network interfaces based on configuration...
web: Adapter 1: nat
//vagrant up
Bringing machine 'web' up with 'virtualbox' provider...
==> web: Checking if box 'joomlatools/box' is up to date...
==> web: Clearing any previously set network interfaces...
==> web: Preparing network interfaces based on configuration...
web: Adapter 1: nat
web: Adapter 2: hostonly
==> web: Forwarding ports...
web: 3306 (guest) => 3307 (host) (adapter 1)
vagrant@vagrant-ubuntu-trusty-64:~/api$ sails lift
module.js:487
throw err;
^
Error: Cannot find module '@sailshq/lodash'
at Function.Module._resolveFilename (module.js:485:15)
at Function.Module._load (module.js:437:25)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
// VAGRANT UP
Vagrant was unable to mount VirtualBox shared folders. This is usually
because the filesystem "vboxsf" is not available. This filesystem is
made available via the VirtualBox Guest Additions and kernel module.
Please verify that these guest additions are properly installed in the
guest. This is not a bug in Vagrant and is usually caused by a faulty
Vagrant box. For context, the command attempted was:
mount -t vboxsf -o uid=1000,gid=1000 vagrant /vagrant
@dclarke-modus
dclarke-modus / gist:55c4ea4019aeec615af95df76ce99a0a
Created June 4, 2017 14:26
[Sails APP] npm install --verbose
gyp info spawn args [ 'V=1', 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory `/var/www/api/node_modules/hiredis/build'
make: Warning: File `hiredis.target.mk' has modification time 1.3e+03 s in the future
cc '-DNODE_GYP_MODULE_NAME=hiredis-c' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' -I/home/vagrant/.node-gyp/8.0.0/include/node -I/home/vagrant/.node-gyp/8.0.0/src -I/home/vagrant/.node-gyp/8.0.0/deps/uv/include -I/home/vagrant/.node-gyp/8.0.0/deps/v8/include -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -MMD -MF ./Release/.deps/Release/obj.target/hiredis-c/deps/hiredis/sds.o.d.raw -c -o Release/obj.target/hiredis-c/deps/hiredis/sds.o ../deps/hiredis/sds.c
cc '-DNODE_GYP_MODULE_NAME=hiredis-c' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' -I/home/vagrant/.node-gyp/8.0.0/include/node -I/home/vagrant/.n
$ npm install
> [email protected] preinstall /var/www/api/node_modules/extendr/node_modules/typechecker
> node ./cyclic.js
> [email protected] preinstall /var/www/api/node_modules/extract-opts/node_modules/typechecker
> node ./cyclic.js
npm WARN prefer global [email protected] should be installed with -g
//Client Model
module.exports = {
connection: "mongodbServer",
attributes: {
url: {
type: 'string',
required: true
},
//Client Model
module.exports = {
connection: "mongodbServer",
attributes: {
url: {
type: 'string',
required: true
},
client: [{
url:"127.0.0.1",
clientid: "blahblah",
clientpassword: "blahblah",
email: "[email protected]",
scopes: [{
"controller": "service",
"action": "get"
}]
//Error when running `sails debug`:
client: [{
url:"127.0.0.1",
clientid: "blahblah",
clientpassword: "blahblah",
email: "[email protected]",
scopes: [{
"controller": "service",
"action": "get"
}]