Open hjek opened 8 years ago
Hi @hjek !
You're running on windows?
Hi @thebergamo , running Ubuntu Wily 64-bit.
$ node -v;npm -v
v5.7.0
3.6.0
hum... please try install just run the ./scripts/server
. (You're running the branch master? I recommend you see/use the branch 2.0-dev). This error suggest you don't have this script probably you need run chmod +x /scripts/server
for the script have the permission for running.
Cool. There's no documentation, so I was just trying random stuff.
Can't find branch 2.0-dev. It's not listed here.
Tried running ./scripts/server
. Got this:
$ ./scripts/server
==> Installing Node.js…
scripts/bootstrap: 26: scripts/bootstrap: nodenv: not found
Having run sudo npm install -g nodeenv
doesn't change that.
Tried index.js
(because it is referenced by ./scripts/server
). Got this:
$ node index.js
{ [Error: ENOENT: no such file or directory, open '.env'] errno: -2, code: 'ENOENT', syscall: 'open', path: '.env' }
{ [Error: EACCES: permission denied, mkdir '/home/logs']
errno: -13,
code: 'EACCES',
syscall: 'mkdir',
path: '/home/logs' }
160319/190216.775, [log,info], data: Server running at: http://localhost:8000
160319/190224.062, [response], http://localhost:8000: get / {} 404 (98ms)
Note: On must *nixes the /home
dir isn't writeable.
My bad, sorry. This project is heavily inspired in another project Start-Hapiness.
In this project we use a .env
file to load all the configurations, in the root of project have a file called .envsample
, copy that file and change the values for yours own values.
$ cp .envsample .env
About the second error, at the path src/core/log.js
the path save the logs files is ../../logs
just in the root of project. If the path founded is /home/logs
, you can just change for ./logs
I guess.
I will improve the README.md of this project to inform better information of how running this project.
Is required use the correct values for PostgreSQL connection at .env file and run npm run migrate
Nice. It might make sense to put those instructions (files to copy from other projects, databases expected to be available, etc) in the Get Started section in the Readme.
@hjek of course, my bad!
This project is not finished yet, because that I not put these information in README.md. Using this instructions works?
@thebergamo to be honest, I am a bit lazy and gonna run it on very low end hardware, so I'm trying out some ecommerce that have embedded databases, like Spree and Flatmarket.
hm... alright!
This project are a little freeze, maybe in next months I do an upgrade and improve docs and complete all the minimum tasks to run and perform a good ecommerce platform supporting in various databases schemas.
Tried cloning repo, doing
npm install
and thennpm run
and got this error: