Skip to content

Issue with database connection on model_table_exists? #8

@giangth94

Description

@giangth94

I am having trouble deploying my app to production. The gem checks if the table exists
(look at this line of code)
https://github.com/stevehodges/draftpunk/blob/master/lib/activerecord/setup_model.rb#L37

When run rake assets:precompile RAILS_ENV=production, I receive the error:

PG::ConnectionBad: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

Looks like it's trying connecting to the database while compling.

Can I skip this table check and how it affects the code? Thank you in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions