我将rails应用程序部署到ubuntu服务器时出现以下错误,我已正确设置ssh密钥,我可以ssh到服务器但是当我尝试做时我得到以下内容
cap production deploy
Run Code Online (Sandbox Code Playgroud)
这是错误消息
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing on host xxxxxx.xxxxxxx.xxx: agent could not sign data with requested identity
Run Code Online (Sandbox Code Playgroud)
自从我之前部署以来,我无法弄清楚我做错了什么,我只需要将我的应用程序更新为我所做的更改.自从我上次部署以来,我没有更改deploy.rb,Capfile或deploy/production.rb文件
我在index.html.erb文件中使用我的rails应用程序上的highstocks渲染图表,但是当我尝试加载图表时,我在firebug控制台上收到以下错误,
ReferenceError: HighCharts is not defined
new HighCharts.Chart({
Run Code Online (Sandbox Code Playgroud)
我的index.html.erb文件如下
<div id="quotes_chart", style="width=560px; height:300px;">
<script>
$(function(){
new HighCharts.Chart({
chart : {
renderTo: "quotes_chart"
},
title : {
text: "Daily trades"
},
xAxis : {
type: "datetime"
},
yAxis : {
title: {
text: "Shillings"
}
},
tooltip : {
formatter: function(){
return HighCharts.dateFormat("%B %e, %Y", this.x) + ': ' + "Kshs" + Highcharts.numberFormat(this.y, 2);
}
},
series: [
<% { "Telecommunication" => StockQuote.telecomm, "Agriculture" => StockQuote.agric }.each do |name, prices|
%> …Run Code Online (Sandbox Code Playgroud) 我已经设置了一个rails应用程序但是当我进行捆绑安装时出现错误:
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/home/kelvin/.rvm/rubies/ruby-2.1.1/bin/ruby extconf.rb
checking for curl-config... no
checking for main() in -lcurl... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/home/kelvin/.rvm/rubies/ruby-2.1.1/bin/ruby
--with-curl-dir
--without-curl-dir
--with-curl-include
--without-curl-include=${curl-dir}/include
--with-curl-lib
--without-curl-lib=${curl-dir}/lib
--with-curllib
--without-curllib
extconf.rb:18:in `<main>': Can't find libcurl or …Run Code Online (Sandbox Code Playgroud) 我在Azure上托管了一个wordpress应用程序,我需要使用自定义函数将数据插入到wp_posts表中,因为我将此脚本作为后台作业运行,因为脚本不在wordpress文件夹中,所以我无法使用wordpress函数.
我试过了:
mysql_query("INSERT INTO wp_posts(post_title, post_content, post_status, post_type, comment_status, page_template), VALUES($title, $sum, 'publish', 'post', 'closed', 'content.php')");
Run Code Online (Sandbox Code Playgroud)
但是我收到以下错误: PHP警告:mysql_query():尝试以其访问权限禁止的方式访问套接字.
日志文件如下:
[04/07/2014 09:51:47 > adf9f5: SYS INFO] Status changed to Initializing
[04/07/2014 09:51:47 > adf9f5: SYS INFO] Run script 'data.php' with script host - 'PhpScriptHost'
[04/07/2014 09:51:47 > adf9f5: SYS INFO] Status changed to Running
[04/07/2014 09:51:48 > adf9f5: ERR ] PHP Warning: mysql_query(): An attempt was made to access a socket in a way forbidden by its access permissions.
[04/07/2014 09:51:48 …Run Code Online (Sandbox Code Playgroud) azure ×1
bundler ×1
capistrano ×1
capistrano3 ×1
curb ×1
highcharts ×1
highstock ×1
javascript ×1
php ×1
ruby ×1
sql ×1
ssh ×1
wordpress ×1