# Seed local database

**URL:** <https://www.ruby-forum.com/t/seed-local-database/259637>\
**Category:** Development\
**Created:** [May 25, 2020, 5:40pm UTC](https://www.ruby-forum.com/t/seed-local-database/259637 "2020-05-25T17:40:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bhavya.khanna](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e8c25b/32.png) [@bhavya.khanna](https://www.ruby-forum.com/u/bhavya.khanna)\
**Post date:** [May 25, 2020, 5:40pm UTC](https://www.ruby-forum.com/t/seed-local-database/259637/1 "2020-05-25T17:40:53Z")

</div>

HI,  
I am new in Ruby and i am set up the open source project on Ubuntu and stuck in some point.  
$ bundle exec rails db:setup  
When i execute the above command then its not running.  
I was execute this in project directory not from root directory.  
I found the error that no Gemfiles and /bundler direcory was found.

Please help asap.

---

<div class="post-metadata">

**Author:** ![carburet0r](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/b5ac83/32.png) [@carburet0r](https://www.ruby-forum.com/u/carburet0r)\
**Post date:** [May 29, 2020, 3:41am UTC](https://www.ruby-forum.com/t/seed-local-database/259637/2 "2020-05-29T03:41:26Z")

</div>

Do you see your gemfile physically listed in the directory? Did you run ‘bundle install’?

---

<div class="post-metadata">

**Author:** ![SouravGoswami](https://www.ruby-forum.com/user_avatar/www.ruby-forum.com/souravgoswami/32/2543_2.png) [@SouravGoswami](https://www.ruby-forum.com/u/SouravGoswami)\
**Post date:** [May 29, 2020, 12:04pm UTC](https://www.ruby-forum.com/t/seed-local-database/259637/3 "2020-05-29T12:04:19Z")

</div>

Just a reminder, when you run `rake db:setup` or `rails db:setup` make sure you are in the app’s root directory…

---

<div class="post-metadata">

**Author:** ![Frank93](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/a5b964/32.png) [@Frank93](https://www.ruby-forum.com/u/Frank93)\
**Post date:** [June 3, 2020, 6:24am UTC](https://www.ruby-forum.com/t/seed-local-database/259637/4 "2020-06-03T06:24:52Z")

</div>

> [@bhavya.khanna](#):
>
> I found the error that no Gemfiles and /bundler direcory was found.
> 
> Please help asap.

Just test that the Gemfile work locally. If it doesn’t then please contact support and get their help.
