Git Product home page Git Product logo

Comments (3)

Alex99y avatar Alex99y commented on May 29, 2024 1

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.

FionaCang avatar FionaCang commented on May 29, 2024 1

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.

Alex99y avatar Alex99y commented on May 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.