SatoshiPortal / cyphernode

Modular Bitcoin full-node microservices API server architecture and utilities toolkit to build scalable, secure and featureful apps and services without trusted third parties
MIT License
362 stars 68 forks source link

Moved env variables out of docker-compose.yaml #255

Closed phillamy closed 2 years ago

phillamy commented 2 years ago

Copied what was done with proxycron in previous version of CN

Kexkey commented 2 years ago

I ran setup and on start:

kexkey@OneMoreBoosterPlease dist % ./start.sh 

'Run as another user' feature is not supported on OSX.  User kexkey will be used to run Cyphernode.

open /Users/kexkey/dev/cn-dev2/dist/.env/proxy.env: no such file or directory

It looks like proxy.env was not generated. I'll investigate a bit...

Kexkey commented 2 years ago

I think you forgot to copy the .env files, in setup.sh. The same way you copied proxycron.env in the previous PR:

copy_file $cyphernodeconf_filepath/proxycron/proxycron.env ${current_path}/.env/proxycron.env 1 $SUDO_REQUIRED

We need all of the generated .env files to be copied to the deployment dirs.

phillamy commented 2 years ago

My error not committing the setup.sh

Kexkey commented 2 years ago

LGTM! Thanks!!