3s3s / opentrade

OpenTrade - Open Source Cryptocurrency Exchange
MIT License
397 stars 401 forks source link

Rename dir accountsserver -> accountsServer #288

Open smoe opened 5 years ago

smoe commented 5 years ago

Hello,

This would be consistent with databaseServer and the sqlite statement would no longer fail:

query...
{ dbPath: '/home/opentrade/accountsServer/database/sqlite_accounts.db',
  command: 'init',
  dbStructure: { dbTables: [ [Object], [Object], [Object] ] } }
Error: SQLITE_CANTOPEN: unable to open database file
Node NOT Exiting...
...

The readme.md would need to be adjusted, too.

Cheers, Steffen

ghost commented 5 years ago

try checking for ssl cert access or see the debug.log of each part: ~/opentrade/accountsserver/ ~/opentrade/ ~/opentrade/databaseServer/

every part of this folder will have debug.log which can see the problem.

or the problem is also happening when doing npm install / npm install -g forever indicating that there is an installation process that is not properly installed

smoe commented 5 years ago

Hm. The "accountsserver" is the git submodule that points to https://github.com/3s3s/accountsserver.git - lower case is kind of what one expects, admittedly. The camel case one is found as

/home/opentrade/accountsServer$  grep -r accountsServer  ..|grep -v ".log"
../.git/modules/accountsserver/config:  worktree = ../../../accountsServer
../accountsServer/constants.js:const DATABASE_PATH = '/home/opentrade/accountsServer/database/sqlite_accounts.db';
../.gitmodules: path = accountsServer

I don't recall to have changed anything manually except for the name of the directory, nor does git point me to anything. It is admittedly just a small side-issue, just one that de a demands extra time until there is a first success.