Comments (3)
Hi Fiona! You need to setup the config file, and this mustbe in the root directory of the project.
appconfig.json
{ "email": { "admin":"[email protected]", "auth": { "user": "[email protected]", "pass": "password" }, "service": "Gmail", "emailVerification": 1 }, "database": { "adapter": "sails-postgresql", "user": "admin", "password": "adminpassword", "port": "5432", "host": "localhost", "database": "airmed" }, "session": { "name": "sails.sid", "secret": "secretKey", "redis": { "url": "redis://: [email protected]:6379/15", "host": "127.0.0.1", "port": 6379, "pass": "redisPassword", "db": 15 } }, "ipfs": { "host":"127.0.0.1", "port":"5001" } }
The sync process should start after sails.
from airmedfoundation-terminal.
Hi Alex99y, I appreciate your reply very much.
But when I run "node ./node_modules/sails/bin/sails.js l --redis --safe " , I got a new problem :
events.js:183
throw er; // Unhandled 'error' event
^
Error: listen EACCES 0.0.0.0:80
at Server.setupListenHandle [as _listen2] (net.js:1343:19)
at listenInCluster (net.js:1401:12)
at Server.listen (net.js:1485:7)
at Object.module.exports.bootstrap (/home/yu/Code/airmedfoundation-terminal/config/bootstrap.js:17:48)
at /home/yu/Code/airmedfoundation-terminal/node_modules/sails/lib/app/private/bootstrap.js:71:34
at Sails.runBootstrap (/home/yu/Code/airmedfoundation-terminal/node_modules/sails/lib/app/private/bootstrap.js:97:5)
at Sails.wrapper [as runBootstrap] (/home/yu/Code/airmedfoundation-terminal/node_modules/@sailshq/lodash/lib/index.js:3275:19)
at Sails.initialize (/home/yu/Code/airmedfoundation-terminal/node_modules/sails/lib/app/private/initialize.js:67:9)
at Sails.wrapper [as initialize] (/home/yu/Code/airmedfoundation-terminal/node_modules/@sailshq/lodash/lib/index.js:3275:19)
at /home/yu/Code/airmedfoundation-terminal/node_modules/sails/lib/app/lift.js:63:13
at /home/yu/Code/airmedfoundation-terminal/node_modules/sails/node_modules/async/dist/async.js:3853:24
at replenish (/home/yu/Code/airmedfoundation-terminal/node_modules/sails/node_modules/async/dist/async.js:946:17)
at iterateeCallback (/home/yu/Code/airmedfoundation-terminal/node_modules/sails/node_modules/async/dist/async.js:931:17)
at /home/yu/Code/airmedfoundation-terminal/node_modules/sails/node_modules/async/dist/async.js:906:16
at /home/yu/Code/airmedfoundation-terminal/node_modules/sails/node_modules/async/dist/async.js:3858:13
at /home/yu/Code/airmedfoundation-terminal/node_modules/sails/lib/app/load.js:279:13
at /home/yu/Code/airmedfoundation-terminal/node_modules/sails/node_modules/async/dist/async.js:421:16
at processQueue (/home/yu/Code/airmedfoundation-terminal/node_modules/sails/node_modules/async/dist/async.js:1565:20)
at taskComplete (/home/yu/Code/airmedfoundation-terminal/node_modules/sails/node_modules/async/dist/async.js:1588:9)
at /home/yu/Code/airmedfoundation-terminal/node_modules/sails/node_modules/async/dist/async.js:1612:17
at /home/yu/Code/airmedfoundation-terminal/node_modules/sails/node_modules/async/dist/async.js:906:16
at Router.load (/home/yu/Code/airmedfoundation-terminal/node_modules/sails/lib/router/index.js:144:3)
I have edited config/policies.js file, added "//" .
And there is not useful to change port. Could you give me more suggestion?
I am looking forward to your reply~
Thank you very much
from airmedfoundation-terminal.
Dont forget to use port 80 you need root access. Try using the PORT environment variable to change the port.
from airmedfoundation-terminal.
Related Issues (17)
- Imagen de preview no mostrada HOT 3
- UI - Mismo tamaño de font para los botones "Choose a file" y "Upload file", mover "drag it here" debajo de upload file
- UI - Añadir mensaje: "The file is now publicly available from: https://gateway.ipfs.io/ipfs/<hash>"
- Documentation HOT 6
- Fully Qualified Domain Name HOT 1
- Follow this code, I can bulid a project like Airmed Foundation combining IPFS and Fabric. HOT 1
- called with an Error: { AdapterError: Unexpected error from database adapter: relation "public.block" does not exist HOT 12
- Imagen jpg descargada como png
- please support go version chaincode
- Nombre de imagen "hash"
- Search dialogue
- Success dialogue
- Potential security vulnerabilities in dependencies HOT 1
- UI - Añadir botón "Choose a file"
- Añadir hyperlink de "The Chain © - 2019" -> thechain.tech
- URL: thechain.tech/medicalchain
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from airmedfoundation-terminal.