-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trouble installing via MacOS and Ubuntu 22.0.4 #2
Comments
Hey :) Actually I develop on MacOS and I deploy on a Ubuntu VM inside docker. From the error it seems that you miss some environment variables. No problem! I will do my best to help you make it work 👍🏽 |
Doh! I forgot to create .env on the Ubuntu box. Working now. However still failing on my MacOS box - I'll keep digging. Thanks! |
Great! Do you have the same error on Mac? |
Appreciate your time! Here's the output: ./tailwindcss -i input.css -o assets/output.css --watch=always Rebuilding... warning: unused import: error[E0446]: private type warning: private type error[E0446]: private type warning: private type error[E0446]: private type warning: private type error[E0446]: private type warning: private type error[E0446]: private type warning: private type error[E0446]: private type error[E0446]: private type error[E0446]: private type error[E0446]: private type warning: private type error[E0446]: private type error[E0446]: private type warning: private type error[E0446]: private type error[E0446]: private type warning: private type error[E0446]: private type warning: private type error[E0446]: private type warning: private type error[E0446]: private type warning: private type error[E0446]: private type error[E0446]: private type error[E0446]: private type warning: function warning: variant For more information about this error, try |
No problem :) Could you print the version of your rust toolchain? (rustc --version from inside the folder you run the code) The one I'm using is: Normally it should be installed automatically since the file
|
What OS are you using to install rustgpt on? I am having trouble on both Ubuntu and MacOS getting this up and running.
For example on Ubuntu 22.0.4:
:~/rustgpt$ just dev
./tailwindcss -i input.css -o assets/output.css --watch=always
cargo watch -w src -w templates -w tailwind.config.js -w input.css -x run
[Running 'cargo run']
warning: unreachable pattern
--> src/ai/stream.rs:161:13
|
161 | _ => (),
| ^
|
= note:
#[warn(unreachable_patterns)]
on by defaultwarning: unused import:
Row
--> src/data/repository.rs:4:12
|
4 | use sqlx::{Row, Sqlite, Transaction};
| ^^^
|
= note:
#[warn(unused_imports)]
on by defaultwarning: function
internal_error
is never used--> src/main.rs:126:4
|
126 | fn internal_error(err: E) -> (StatusCode, String)
| ^^^^^^^^^^^^^^
|
= note:
#[warn(dead_code)]
on by defaultwarning: variant
DatabaseError
is never constructed--> src/router/app/auth.rs:31:5
|
29 | pub enum LogInError {
| ---------- variant in this enum
30 | InvalidCredentials,
31 | DatabaseError(String),
| ^^^^^^^^^^^^^
|
= note:
LogInError
has a derived impl for the traitDebug
, but this is intentionally ignored during dead code analysiswarning:
rustgpt
(bin "rustgpt") generated 4 warningsFinished dev [unoptimized + debuginfo] target(s) in 0.06s
Running
target/debug/rustgpt
thread 'main' panicked at src/main.rs:42:48:
called
Result::unwrap()
on anErr
value: EnvVar(NotPresent)note: run with
RUST_BACKTRACE=1
environment variable to display a backtrace[Finished running. Exit status: 101]
Sorry for asking a n00b question. My strengths are more with golang where we don't seem to have these kind of issues.
The text was updated successfully, but these errors were encountered: