相关疑难解决方法(0)

Rails 3.2:Heroku推送拒绝,没有检测到Cedar支持的应用程序

Rails新手在这里.我正在尝试将我的Rails 3.1/Ruby 1.9.3-p0应用程序部署到Heroku,并按照Heroku的所有步骤进行操作.但我一直遇到:

Heroku推送拒绝,没有检测到Cedar支持的应用程序

我已经尝试了这个问题的所有建议,但到目前为止都没有成功.

ruby-on-rails heroku cedar

25
推荐指数
4
解决办法
2万
查看次数

如何在git的contrib目录中正确安装这些工具?

Git 包含一组由第三方提供的工具.我不确定我应该如何正确使用这些工具.

例如,我想使用git-subtree.似乎有很多方法可以使用它:

  1. 复制到我的路径

    cp /path/to/git-subtree.sh /usr/local/bin/git-subtree
    chmod +x /usr/local/bin/git-subtree
    
    Run Code Online (Sandbox Code Playgroud)

    工作正常,感觉有点hacky.

  2. 符号链接到我的路径

    chmod +x /path/to/git-subtree.sh
    ln -s /path/to/git-subtree.sh /usr/local/bin/git-subtree
    
    Run Code Online (Sandbox Code Playgroud)

    也工作,感觉稍微不那么黑客

  3. 使用git别名

    将以下内容添加到我的全局.gitconfig文件中:

    [alias]
        subtree = !/path/to/git-subtree.sh
    
    Run Code Online (Sandbox Code Playgroud)

    然后又好老chmod:

    chmod +x /path/to/git-subtree.sh
    
    Run Code Online (Sandbox Code Playgroud)

    工作,感觉很好,git-ish.

  4. 使用Makefile

    按照INSTALL文件.

    cd /path/to/git-subtree.sh
    make
    make install
    make install-doc
    
    Run Code Online (Sandbox Code Playgroud)

    对我不起作用,它会尝试安装到不存在的路径.也许这是因为我使用自制软件安装git 而不是从源代码安装?我懒得去调查; 我已经有三种工作方式.:)

所以我的问题是,哪些是安装git-contrib附加组件的首选方式?甚至还有一种首选方式吗?有没有其他选择我没有建议比上面列出的更好?

git

23
推荐指数
3
解决办法
9365
查看次数

如何在Rails中的生产环境中添加pg gem

我是编程和在Cloud9 IDE上使用RAILS的新手.我很难将我的应用程序推入Heroku.我收到错误:...

Push rejected, no Cedar-supported app detected
remote: HINT: This occurs when Heroku cannot detect the buildpack
remote: 
Run Code Online (Sandbox Code Playgroud)

注意:我正在关注的教程告诉我在Heroku设置部分:

Heroku使用PostgreSQL数据库(发音为"post-gres-cue-ell",通常简称为"Postgres"),这意味着我们需要在生产环境中添加pg gem以允许Rails与Postgres交谈:17

 group :production do   
    gem 'pg', '0.17.1'   
    gem 'rails_12factor', '0.0.2’ 
 end
Run Code Online (Sandbox Code Playgroud)

问题:如何pg在生产环境中添加gem(我怀疑推送拒绝错误是由于此)

ruby ruby-on-rails heroku

1
推荐指数
1
解决办法
2501
查看次数

推送拒绝未检测到Cedar支持的应用

我刚刚注册了heroku并试图在应用程序中添加第一个单个静态html页面.我按照确切的步骤克隆了repo,现在尝试添加该文件,但不断收到此消息:

 !     Push rejected, no Cedar-supported app detected

To git@heroku.com:pak-attacks.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:my-project-saif.git'
Run Code Online (Sandbox Code Playgroud)

任何人都知道发生了什么或需要做什么?非常感谢.

git heroku

0
推荐指数
1
解决办法
2718
查看次数

标签 统计

heroku ×3

git ×2

ruby-on-rails ×2

cedar ×1

ruby ×1