labhub icon indicating copy to clipboard operation
labhub copied to clipboard

Not able to deploy with docker

Open bear2107 opened this issue 5 years ago • 3 comments

I updated the LabHub file with my credentials and then did a docker build. It works fine but the moment i do docker run it gives me the following error: Warning: environment is 'production', but no secret_key is configured thread 'main' panicked at 'Unable to open the file: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/libcore/result.rs:1084:5 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace.

bear2107 avatar Aug 27 '19 11:08 bear2107

That error means you haven't supplied a configuration file.

brndnmtthws avatar Aug 27 '19 21:08 brndnmtthws

where should i put it ? i modified Labhub.toml variables. Is there anything else i need to do ?

bear2107 avatar Aug 28 '19 06:08 bear2107

Configured for development. => address: localhost => port: 8000 => log: normal => workers: 4 => secret key: generated => limits: forms = 32KiB => keep-alive: 5s => tls: disabled ✨ May your hopes and dreams become reality ✨ Loaded LabHub configuration values from LabHub.toml thread 'main' panicked at 'Unable to open the file: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/libcore/result.rs:1084:5 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace.

I got this when deploying under dev mode. It loaded configuration values from LabHub.toml

bear2107 avatar Aug 28 '19 07:08 bear2107