-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Setting up a mastodon development environment #15863
Comments
I have actually never seen this error. Docker is not the way to go for development (too much overhead to quickly see changes, in my opinion), but it is true that latest Node is unsupported. Perhaps our Vagrant image can help, that is actually meant for development. |
In relation to the DebugInspector error, for one user it was due to a missing C extension. However, the .so file is present on my system [1] so the problem seems to lie elsewhere. [1]
|
Could you elaborate why you consider docker too much overhead for development but find Vagrant an acceptable solution? Vagrant appears much more resource demanding than a containerized alternative, i.e. classic virtual machine vs containers debate. I also wouldn't clasify the default development setup as lightweight, as it requires the developer to run postgres and redis services on their machine. Imo, neither of these options appear to fall under the category 'lightweight'. I'd put native and containerized on the same level with the later being much easier to setup. |
Hi, I've been trying to track down the cause of the debug_inspector extension failing to load. As you say, the Can you try including debug_inspector using the branch I created for banister/debug_inspector#30 ?
If that fixes the issue for you, I'll cut a new release of debug_inspector. |
@RobinDaugherty thank you for your efforts! I'll try with your branch and get back to you by the end of the day (European timezone). |
@RobinDaugherty I can confirm that the To be complete, these are the contents of
|
Excellent! debug_inspector 1.1.0rc1 has been released, which contains that fix. |
As far as I understand, the blame for both errors falls on ArchLinux from stripping stuff from the default Ruby installation (e.g., |
This comment has been minimized.
This comment has been minimized.
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
While trying to setup a dev environment following https://github.com/tootsuite/documentation/blob/master/content/en/dev/setup.md I've seen the following two issues on my system, when trying to run
RAILS_ENV=development rails db:setup
.First issue:
LoadError: cannot load such file -- irb
This was fixed by adding
gem 'irb'
to the Gemfile and runningbundle install
.Second issue:
This was circumvented by removing the
better_errors
andbinding_of_caller
gems from my Gemfile and runningbundle update/install
.I don't know how to fix these issues and whether the blame lies with Arch Linux or mastodon. I would like to know how to fix the second issue, rather than circumvent it.
Expected behaviour
A working development environment as per the documentation.
Actual behaviour
Encountered the issues above.
Steps to reproduce the problem
Try to setup a dev environment under Arch Linux.
Specifications
Master branch.
ruby 2.7.2p137
on Arch Linux.UPDATE: a bit later I noticed that the streaming server doesn't play along nicely with the latest nodejs version, similar to this issue: #14866 (comment)
It seems to me that docker is the way to go.
UPDATE2: using an older nodejs release via nvm for running the streaming server worked for me. I'm using
node v12.16.3
, which should be the same as in the mastodon docker image. Arch linux is onnode v15.11
.The text was updated successfully, but these errors were encountered: