使用postgres

没有任何运气就try 了这个:

config.assets.initialize_on_precompile = false

-----> Preparing app for Rails asset pipeline

   Running: rake assets:precompile
   rake aborted!
   could not connect to server: Connection refused
   Is the server running on host "127.0.0.1" and accepting
   TCP/IP connections on port 5432?

推荐答案

公认的答案并没有完全解决这个问题.我花了2-3个小时试图找到一个解决方案,但没有成功,然后成功了:

在你的应用程序目录中.

heroku labs:enable user-env-compile

它还在失败吗?

heroku labs:disable user-env-compile
heroku labs:enable user-env-compile

然后它对我起了作用,只需移除并重新进行.

The following config is no longer needed in Rails 4. Compiling assets must work without it.

config.assets.initialize_on_precompile = false

Postgresql相关问答推荐

到第二天的Postgres计时器

将XML解析从T-SQL迁移到Postgres时出现问题

当条件的计算结果为假(或真)时停止执行查询

无法使用PGx连接到Postgres数据库AWS RDS

为什么我的唯一索引在 Postgresql 中不起作用?

PostgreSQL临时文件的误解

使用 WHERE 子句创建递归视图

PostgreSQL 输入结束时的语法错误

PostgreSQL:如何安装 plpythonu 扩展

H2 postgresql mode模式似乎不起作用

从time without time zone和时区名称中获取time with time zone

在 PostgreSQL 中显示正在运行的查询的全文

如何使用 WITH RECURSIVE 子句进行 Select

如何为 Postgres psql 设置时区?

使用 Hibernate 注释映射 PostgreSQL 串行类型

PostgreSQL 9 在 Windows 上安装:Unable to write inside TEMP environment path.

PL/pgSQL 执行与执行

如何减少存储(缩减)我的 RDS 实例?

如何从我的 postgresql 查询中获取最小值、中值和最大值?

Heroku 上的 Postgres 并将单个表转储到转储文件