草庐IT

heroku-postgres

全部标签

ruby-on-rails - Rails - Postgres - 无法连接到服务器:连接被拒绝 (PG::ConnectionBad)

昨天我安装了Postgres和pgAdminIII,一切正常,但在重新加载后它停止工作了。在railsserver之后我收到了错误信息:=>BootingThin=>Rails3.2.13applicationstartingindevelopmentonhttp://0.0.0.0:3000=>Callwith-dtodetach=>Ctrl-CtoshutdownserverExiting/home/home/.rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.13/lib/active_record/connection_adapter

ruby-on-rails - Rails - Postgres - 无法连接到服务器:连接被拒绝 (PG::ConnectionBad)

昨天我安装了Postgres和pgAdminIII,一切正常,但在重新加载后它停止工作了。在railsserver之后我收到了错误信息:=>BootingThin=>Rails3.2.13applicationstartingindevelopmentonhttp://0.0.0.0:3000=>Callwith-dtodetach=>Ctrl-CtoshutdownserverExiting/home/home/.rvm/gems/ruby-1.9.3-p448/gems/activerecord-3.2.13/lib/active_record/connection_adapter

ruby - taps 从 sqlite 到 postgres rails4、ruby 1.9.3 的迁移失败

我正在尝试将我的Rails应用程序迁移到Postgresqlforheroku,但是我无法点击以从我的SQLite3数据库中获取数据,这是我尝试过的方法:为新数据库创建Postgres数据库用户$createuserf3Shallthenewrolebeasuperuser?(y/n)nShallthenewrolebeallowedtocreatedatabases?(y/n)yShallthenewrolebeallowedtocreatemorenewroles?(y/n)y编辑-更新了下面的命令-改用它$createuserf3-d-s创建所需的数据库$createdb-Of3

ruby - taps 从 sqlite 到 postgres rails4、ruby 1.9.3 的迁移失败

我正在尝试将我的Rails应用程序迁移到Postgresqlforheroku,但是我无法点击以从我的SQLite3数据库中获取数据,这是我尝试过的方法:为新数据库创建Postgres数据库用户$createuserf3Shallthenewrolebeasuperuser?(y/n)nShallthenewrolebeallowedtocreatedatabases?(y/n)yShallthenewrolebeallowedtocreatemorenewroles?(y/n)y编辑-更新了下面的命令-改用它$createuserf3-d-s创建所需的数据库$createdb-Of3

python - 在 Heroku 上使用 Python2.7 导入 sqlite3

我正在用Python尝试Heroku,我运行了"helloword"examplewithFlask成功。我现在想部署一个非常基本的应用程序,使用sqlite3和Flask,我知道该应用程序正在运行。但是我无法让它工作,我怀疑问题出在sqlite上。当我启动Heroku提供的Pythonshell时,这里是导入错误日志:$herokurunpythonRunningpythonattachedtoterminal...up,run.2Python2.7.1(r271:86832,Jun262011,01:08:11)[GCC4.4.3]onlinux2Type"help","copyr

python - 在 Heroku 上使用 Python2.7 导入 sqlite3

我正在用Python尝试Heroku,我运行了"helloword"examplewithFlask成功。我现在想部署一个非常基本的应用程序,使用sqlite3和Flask,我知道该应用程序正在运行。但是我无法让它工作,我怀疑问题出在sqlite上。当我启动Heroku提供的Pythonshell时,这里是导入错误日志:$herokurunpythonRunningpythonattachedtoterminal...up,run.2Python2.7.1(r271:86832,Jun262011,01:08:11)[GCC4.4.3]onlinux2Type"help","copyr

django - 防止 Django SQLite 数据库在推送到 Heroku 时被覆盖

我有一个Django应用程序,它在其模型中存储大量数据。问题是,每当我部署到Heroku时,即使是很小的更改,具有正确数据的远程数据库也会被本地虚拟数据数据库覆盖。场景:我有一个远程数据库文件my_db。现在,当推送到heroku时,我只是gitadd>gitcommit只有更改的文件而不是整个项目。我的问题在于,它仍然以某种方式用本地数据覆盖远程数据库。有没有办法避免这种情况? 最佳答案 Herokudoesnotprovideapersistentfilesystem.我开发过的大多数Heroku应用程序都将PostgreSQL

django - 防止 Django SQLite 数据库在推送到 Heroku 时被覆盖

我有一个Django应用程序,它在其模型中存储大量数据。问题是,每当我部署到Heroku时,即使是很小的更改,具有正确数据的远程数据库也会被本地虚拟数据数据库覆盖。场景:我有一个远程数据库文件my_db。现在,当推送到heroku时,我只是gitadd>gitcommit只有更改的文件而不是整个项目。我的问题在于,它仍然以某种方式用本地数据覆盖远程数据库。有没有办法避免这种情况? 最佳答案 Herokudoesnotprovideapersistentfilesystem.我开发过的大多数Heroku应用程序都将PostgreSQL

ruby-on-rails - 如何将 Heroku 数据拉入本地 SQLite3 数据库

我正在尝试对部署到Heroku的Rails应用程序中的数据进行本地备份,但遇到了问题。我关注了tapsinstructions并安装了Tap。我遇到两种类型的错误。我在本地创建了一个SQLite数据库并尝试使用此命令提取数据:(sudo)herokudb:pullsqlite://Users/username/folder/testbackup.db或(sudo)herokudb:pullsqlite://username:password@localhost/Users/username/folder/testbackup.db但无论哪种方式我得到这个:Failedtoconnect

ruby-on-rails - 如何将 Heroku 数据拉入本地 SQLite3 数据库

我正在尝试对部署到Heroku的Rails应用程序中的数据进行本地备份,但遇到了问题。我关注了tapsinstructions并安装了Tap。我遇到两种类型的错误。我在本地创建了一个SQLite数据库并尝试使用此命令提取数据:(sudo)herokudb:pullsqlite://Users/username/folder/testbackup.db或(sudo)herokudb:pullsqlite://username:password@localhost/Users/username/folder/testbackup.db但无论哪种方式我得到这个:Failedtoconnect