Tag: 部署

AJAX调用在IIS 7.5中返回404(本地),但在其他IIS中也一样

我在我的MVC应用程序中对我的控制器进行了AJAX调用 Controller/FunctionName $.ajax({ type: “GET”, contentType: “application/json; charset=utf-8”, url: ‘/Controller/FunctionName’, . . . )}; 我正在使用MVC 4并使用JQUERY Ajax函数,如上面的代码所示。 当我从Visual studio运行时它完全正常。 我将它解密到服务器机器,并按预期正常工作 。 在AJAX调用中没有发现任何问题。 现在我正在尝试在我的本地机器IIS中部署它,这与我的服务器版本(IIS 7.5)相同,但是在firebug中获取所有ajax调用的404 。 我validation了构建,甚至我指向我的网络文件夹,我仍在寻找出了什么问题! 它适用于其他IIS,所以它不会是一个URL解决问题是我的意见。 我错过了任何设置或任何及时的想法来解决这个问题会很棒。 谢谢

bundle exec rake assets:预编译失败,带有’unexpected token`

我准备将我的Rails 3.1应用程序部署到生产环境中,因为我正在使用资产管道, 所以我需要预编译我的资产 。 但是,当我尝试这个时,我得到一个显然与编译jQuery有关的错误: $ bundle exec rake –trace assets:precompile ** Invoke assets:precompile (first_time) ** Execute assets:precompile /home/adam/.rvm/rubies/ruby-1.9.3-p0/bin/ruby /home/adam/.rvm/gems/ruby-1.9.3-p0@rails-3.1/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets –trace ** Invoke assets:precompile:all (first_time) ** Execute assets:precompile:all ** Invoke assets:precompile:primary (first_time) ** Invoke assets:environment (first_time) ** Execute assets:environment ** Invoke environment (first_time) ** Execute environment ** Invoke tmp:cache:clear (first_time) ** Execute […]