This is the starting point for getting help on any issue relating to working with the dev.to open source project. This thread will act as an FAQ destination of sorts. Do not feel shy posting here, we'll continuously keep an eye on this thread and we urge anyone to hop in to help in any way they can.
We will occasionally start new threads with an updated version number to keep up with the state of the project as things change over time and information in here become out of date.
We plan to eventually use DEV Connect channels as sort of breakout rooms for different parts of the project, but not as one massive room. The specifics of how we’ll leverage Connect rooms is a bit to be determined.
I urge folks involved in the project to hit the save button (🔖) to track discussion in these threads in your reading list comment activity area.
Happy coding ❤️
Oldest comments (109)
We'll be here for any and all random problems folks run into.
Have you given any (and I mean any) thought to using Dart in the future? Whether via AngularDart for the frontend or Dart on the backend?
What about Flutter for Android and iOS apps?
I've played around with Flutter. I don't think it necessarily fits our use cases today, but I am all for keeping an eye on Flutter and Dart as choices for new things in the future. (And possibly for our current native app story, but need to be convinced)
1.) Could we create a separate CONTRIBUTING.md file for "How to Contribute" guidelines?
Yeah, I think that makes sense.
Does anyone know how to update the built-in version of ruby on Mac?
I ended up getting around it by using RubyMine and telling it to use the brew version for the dev.to environment, and then I set up the bin scripts as run configurations.
Since I had ruby 2.5.1 installed, I wasn't terribly inclined to download RVM just so it could download its own version of ruby, too. I just don't think this was the most optimal way of fixing my version issues.
(And as someone who never used postgressql before, that part was not intuative at all... but I have no clue how to fix that in the docs, since I was bumbling my way through it)
I use RVM because I have different projects using different versions of Ruby and it's useful for that:
Can you please articulate what issues did you have? I think it's very important because a difficult onboarding can be a turn off for first contributors. Thank you!
My issue was trying to figure out how to articulate it late at night ;)
I think the issues started with completely blowing past the hey you need to install this stuff first section of the README and just starting to get the local build working with stuff like api keys and bundle install. And since I was having issues with the ruby version, I was inclined to think all my issues were around ruby rather than the db.
The biggest thing after needing it installed was needing to have it run before running anything. The installation was lumped with installing things like bundle and yarn which are more hands-off, so it wasn't clear that after installing the prereqs, I should actually start the db and that it wasn't handled in the bin scripts like everything else.
Then I wanted to actually see what was in the db, so I hunted through the configs and internet to see how to find the settings of the db that's created to connect to it within RubyMine.
It wasn't anything really hard or missing, just stuff that wasn't obvious as someone not in the stack.
Ah gotcha, we'll shore that up for the next iteration. What sort of issues are you having right now with it?
Are you using a Ruby version manager? You probably have
rbenvorrvminstalled.As far as I know, I have not because I'm not a Rubyish person, but I can check once I get home. I knew I brew installed it and would have installed it way back when for brew (since I'm pretty sure brew runs on ruby) but otherwise I don't recall ever doing anything with ruby.
Right now, nothing, since I was eventually able to get local dev.to up and running to get my screenshots for my PR :) Originally, though, since I was only installing it to use dev.to, I didn't:
Like, reading the section of hey install this stuff didn't really click with me to actually run the database and that it was not a part of the bin scripts.
Ah gotcha, sorry that wasn't clear! We'll definitely update the instructions for the prerequisites.
And yep, let me know if you still have issues with your Ruby, or anything else really. 🙂
I have similar issue running
bundle installonly have Ruby 2.5.1 installed.
I have tried restarting terminal and machine both just to clear cache if there's any.
Did you set 2.5.1 as the global version?
According to karloespiritu.github.io/cheatsheet... you need to type:
rbenv global 2.5.1, otherwise it uses the default version shipped with the OSThanks for the cheatsheet. Yes, I have tried rbenv global 2.5.1.
When you are in the directory of the project, what does
rbenv versionsay?I feel like something is messed up with the
/etc/paths/although can't seem to figure it out. I am following this link here-: stackoverflow.com/questions/873067...What's the output of
ruby -vcompared torbenv version?Try running
rbenv shell 2.5.1and then runningbundle.If not, a reinstall of
2.5.1might help:Let me know how it goes!
Thanks Andy. I did a reinstall of rbenv and ran below.
❯ ruby -v
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin15]
❯ rbenv version
2.5.1 (set by RBENV_VERSION environment variable)
❯ rbenv shell 2.5.1
still see the same issue.
❯ bundle install
Your Ruby version is 2.0.0, but your Gemfile specified 2.5.1
Ah, your
bundle installmight be running from your old Ruby version as opposed to the latest one.Try running
which gemandwhich bundle. You should be seeing something similar to this output:If it's different, you'll probably see that
bundleorgemare running from different paths thanruby.That did it. Thanks for the tip.
gem and ruby paths were same but bundle. I updated the PATH for bundle gem file using BUNDLE_GEMFILE
Awesome! Glad to know it worked. From my experience, it's "cleaner" to reinstall your gems per version, but I'm not too sure if it matters too much.
Hey, I am currently working on some night mode bugs and my work mainly works on editing scss/css files,
nevertheless I want to run a local setup of the application in an attempt to check the changes I am making.
I am having the same error as above only that dev.to required ruby version
2.6.1but it seems to be picking up2.3.7from my system macOSI have followed all the steps but to no use, I have little to no experience in ruby. could use your help in the same.
Hey, I'm looking to start work on
GitHub Organisation Projects
It would be great if you could pin a GitHub repo from one of your organisations, as well as your personal repositories e.g. I'd like to be able to pin this project on my profile
I wouldn't say this is a particularly simple first Rails issue but since it's yours I think you have the other insight to make it happen.
Basically in the controller we have this defined:
Octokit is the GitHub Ruby wrapper. It's been around a long time and is well-supported.
From here with
@client, we currently call an octokit method to look up repos to display in the settings area.I imagine to add the org repos, it'll be a matter of finding out what octokit has for that. Maybe they have a flattened way of finding all the repos, but I imagine it could be about sort of traveling up and down the object tree to get them. Hopefully it can be done efficiently.
Good luck, we can help with any bumps!
I am getting following error I am not sure what is issue with
bcryptBCrypt::Errors::InvalidHash in OmniauthCallbacksController#githubHey, when are you hitting this error? We'll need some more context to help you debug. I'm guessing you tried signing in? If you're doing any sign in process, you'll need to setup the appropriate APIs. Instructions here: docs.dev.to/get-api-keys-dev-env/#...
Hi Andy,
I did all the setup required by the docs and still got this error and there is a GitHub issue[1] and same error while populating the database with the initial seeds
bin/setupgot this errorBCrypt::Errors::InvalidHash: invalid hash[1] github.com/codahale/bcrypt-ruby/is...
Hey Tristan, definitely not a stupid question :)
It's probably a bit early to realistically stand up a fully self-hosted instance of DEV.
If your company is sharing technical content that is for public consumption, you're welcome to set up an organization account on the production site. You can look at Heroku as an example. You never know what might help other users.
@ben will follow up with a bit more info and context.
Yeah, org accounts are the recommended way to go right now, but the instance direction is something we could start working on right away, as long as we’re willing to be patient along the way.
So that area has to be thought of as really theoretical at this point, but being an early adopter of that path could be very powerful, so you are welcome to volunteer to become part of our early group who might start thinking about that use case. Let me know if you’d like me to keep you in the loop.
Hi,
I have recently been learning python, HTML5 CSS3 and now Javascript for the past 3 months, and so I am quite new to all of this, but I am incredibly driven and passionate about growing and learning new things and more.
I am also new to the community scene, therefore I was hoping someone could help me learn how I can contribute and get to know others who I can work alongside and grow with.
Thanks,
Hey guy MacOS and Ubuntu on digital ocean found this same problem

Hey Kris, not sure where you ran into that error. Could you provide some more details about the issue?
From a basic check, it looks like you're running into an issue with our ENV variable checker gem
envied. Yourapplication.ymlshould have key value pairs where the key is all capitals with no quotes and the value should have quotes, like so:Some comments may only be visible to logged-in visitors. Sign in to view all comments.