Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8626279
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T07:59:14+00:00 2026-06-12T07:59:14+00:00

does somebody know why data will not be stored in mongodb in a railway-project

  • 0

does somebody know why data will not be stored in mongodb in a railway-project using the –coffee option?

Creating a project the regular way (w/o –coffee option) data will be saved in mongodb. So when do the following:

railway init blog && cd blog

and after modifying the database.json to

{ "development":
  { "driver":   "mongoose"
  , "host":     "localhost"
  , "database": "blog_dev"
  }
}

everything works fine when I install all dependencies and start the server with

npm install -l
railway g scaffold post title content
railway s

So far. But when I create a project with –coffee option like:

railway init blog --coffee

and after modifying the database.yml (this is different in coffe-mode) to

development:
  driver:   "mongoose"
  host:     "localhost"
  database: "blog_dev"

and after installing all dependencies and start the server with

npm install -l
railway g scaffold post title content --coffee
railway s

data will only stored in memory.

any idea?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T07:59:15+00:00Added an answer on June 12, 2026 at 7:59 am

    Use database.json instead of database.yml:

    {
      "development": {
        "driver": "mongoose",
        "host": "localhost",
        "database": "blahblahblah"
      },
      "test": {
        "driver": "memory"
      }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Ruby on rails. Does somebody know how can I insert a javascript
does somebody tested - will authlogic works with oauth-plugin ( https://github.com/pelle/oauth-plugin ) or not?
Does somebody know if it is possible to specify the data source of a
Does somebody know how can we create a hyperlink using dust.js with node.js? I
Does somebody know why my header() does not redirect? The last part of my
Does somebody know what is the memory overhead of a ConcurrentHashMap (compared to a
Does somebody know a module, which has a function that returns ( for example
Does somebody knows where the file with the actual stored SharedPreferences is located?
does somebody know, why the argparse module didn't make it in python 3? it's
Does somebody know, how to call a lightbox from an custom link? Example: $('#price1

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.