Ask A Question

Notifications

You’re not receiving notifications from this thread.

Need help setting up development environment for an project named Noticed (Open source)

Aman Patel asked in Rails

Hi all

I am trying to start contributing to the open-source world and so I am trying to setup Noticed gem locally (https://github.com/excid3/noticed). I have my postgres server up. After installing the dependencies when I do rails db: create it shows me this :
Don't know how to build task 'db:create' (See the list of available tasks with rails --tasks)

Also, running rake test shows error. Can someone please help me?

Reply

I need to figure out what's up with the Rake tasks, but I've had to go cd test/dummy && rails db:schema:load to get it to load the db tasks for testing.

I'm pretty sure it's something small that's missing, but I haven't had a chance to look yet. If you figure out what's missing with the Rakefile, send me a PR! 😜

Reply

I said that and decided to look at the Pay gem and think I figured it out.

The Rakefile in that gem loads the Rakefile from the dummy app. That makes total sense.

APP_RAKEFILE = File.expand_path("test/dummy/Rakefile", __dir__)
Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 82,329+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.