AllYourBot / hostedgpt

An open version of ChatGPT you can host anywhere or run locally.
MIT License
344 stars 165 forks source link

Update bin/dev on Render #459

Closed krschacht closed 1 month ago

krschacht commented 1 month ago

After the recent PR #457, Render is now reporting an error Workaround: Overmind installing wrong binaries for aarch64-linux

This PR attempts to fixes the issue #458

htruong commented 1 month ago

That's funny, why did the $RUBY_PLATFORM == aarch64-linux* match in the Render case?

On my laptop:

#!/bin/bash

RUBY_PLATFORM=$(ruby -e "puts Gem::Platform.local")

if [[ $RUBY_PLATFORM == aarch64-linux* ]]; then
        echo "$RUBY_PLATFORM is an aarch64-linux platform"
else
        echo "$RUBY_PLATFORM is not aarch64-linux"
fi
$ ./foo.sh
x86_64-linux is not aarch64-linux

Why did it match, did Render actually use aarch64-linux?

krschacht commented 1 month ago

I was also confused by this. But notably, even if they are using it, I would have expected this change to have been a positive one for Render but instead bin/dev was exiting with an error code. It’s a bit of a sloppy fix but it worked to just exception it. There continue to be a surprising number of little edge cases for all these different environments! :)