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

  • SEARCH
  • Home
  • 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 7402315
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T04:42:53+00:00 2026-05-29T04:42:53+00:00

I have a host at Linode and am trying to run a Rake task

  • 0

I have a host at Linode and am trying to run a Rake task on it, but I get a mySQL error saying it can’t connect. It looks like it thinks it is on dev. I did some Googling and saw that I can do something like this:

bundle exec rails c

It loads the dev environment and I can’t run User.all giving me an access denied error.

If I run bundle exec rails c RAILS_ENV=production I get the error:

Rails.env=production database is not configured (ActiveRecord::AdapterNotSpecified)

However, if I access it via the web, everything is OK. I was able to run rake db:seed before so I know that there’s some way around this.

Accessing mySQL with the production credentials works fine.

Any ideas?

  • 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-05-29T04:42:55+00:00Added an answer on May 29, 2026 at 4:42 am

    Try this:

    rails c production
    

    or, at the beginning:

    RAILS_ENV=production rails c
    

    It thinks you’re passing RAILS_ENV=production as an argument when you put it at the end.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a host with php+mysql and i need to run a script here
A single Biztalk Server can have multiple Host processes. Is it possible to create
Here's the scenario: I'd like to have a host class that can have a
I have an object created in a host application and can access it remotely
I have a Host enayam.in (linux) i have mysql db in this Host. Actually
I have the host, port, user id and password but missing SID for connecting
If I have: Write-Host [$(Get-Date -displayhint time)] backup starting... I get: [02/17/2010 1:26:12pm] backup
I have a host and cPanel access but only one main user and password
I faced with next task: I have an host, for example host.com and web-application
I have a virtual host setup on Apache 2 like so (simplified): <VirtualHost *>

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.