我在使用RVM和mongrel_rails方面遇到了麻烦,所以任何帮助都会非常感激.
我可以愉快地使用Ruby gem mongrel使用脚本/服务器启动我的Rails 2.x应用程序.详情:哪个rails/opt/local/bin/rails哪个mongrel_rails/opt/local/bin/mongrel_rails哪个gem/opt/local/bin/gem
但是我刚刚用Ruby 1.8.7添加了RVM并安装了我的所有宝石,包括mongrel但是当我尝试用脚本/服务器启动我的rails应用程序时,我现在得到:没有这样的文件要加载 - mongrel_rails(MissingSourceFile)
运行几个检查我发现:
其中mongrel_rails /Users/daniellewis/.rvm/gems/ruby-1.8.7-p334@nacore/bin/mongrel_rails which rails /Users/daniellewis/.rvm/gems/ruby-1.8.7-p334@nacore/bin/rails哪个宝石/Users/daniellewis/.rvm/rubies/ruby-1.8.7-p334/bin/gem
.profile有:export PATH =/opt/local/bin:/ opt/local/sbin:/ usr/local/mysql/bin:$ PATH [[-s"$ HOME/.rvm/scripts/rvm"]] && ."$ HOME/.rvm /脚本/ RVM"
(我正在使用macports)
有关为什么脚本/服务器无法找到mongrel_rails的任何想法?我只能猜测它与.profile有关,但我不确定是什么.
谢谢!
谢谢你的帮助.
我在我的本地机器(mac osx lion)上有一个git repo,我正试图用Ubuntu推送到我的ec2实例.
在我做过的ec2服务器上:
cd /u/apps
mkdir stuff.git
cd stuff.git
git init --bare
git update-server-info
Run Code Online (Sandbox Code Playgroud)
在我的本地机器上,我有一个文件夹'stuff',它只有一个文本文件.
cd stuff
git init
git add .
git commit -m "initial commit"
git remote add origin user@111.111.111.111:/u/apps/stuff.git
git push origin master
Counting objects: 6, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (4/4), 477 bytes, done.
Total 4 (delta 0), reused 0 (delta 0)
To user@111.111.111.111:/u/apps/stuff.git
95d5ae5..4b5a30f master -> master
Run Code Online (Sandbox Code Playgroud)
一切似乎都很好但是当我检查服务器时,没有添加名为"hello.txt"的新文本文件.我只看到:
/u/apps/stuff.git$ ls
branches …Run Code Online (Sandbox Code Playgroud) 关于openSSL heartbleed问题和解决方案,我应该撤销OR重新锁定我现有的SSL证书吗?
我想设置 amazon cloudfront,但是资产需要在 http 和 https 上都可用。
我也想使用多个 cname。例如 xyz0.cloudfront.net xyz1.cloudfront.net xyz2.cloudfront.net xyz3.cloudfront.net
这可能吗?
从我读到的唯一方法是使用自定义 cname (xyz0.example.com) 但问题是它迫使我将我们的 SSL 证书上传到亚马逊以便使用 https 和每月花费 600 美元!
谢谢你的帮助。
我刚刚转而使用带有Rails 4.1.6的Figaro gem v1.0.0.自从删除我的secrets.yml文件后,我现在得到错误:
处理请求时出现意外错误:缺少secret_key_base"开发"环境,请设置此值config/secrets.yml
我还需要secrets.yml文件 - 这不是费加罗的application.yml文件的工作吗?
我的application.yml文件就像
development:
secret_key_base: 56....
Run Code Online (Sandbox Code Playgroud)