我正在尝试将代码从我的应用程序更新到我的存储库,并出现错误.
我该如何解决?
C:\Sites\ecozap>git push heroku master
Enter passphrase for key '/c/Users/Diseño2/.ssh/id_rsa':
Fetching repository, done.
To git@heroku.com:ecozap.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'git@heroku.com:ecozap.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Merge the remote changes (e.g. 'git pull')
hint: before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
Run Code Online (Sandbox Code Playgroud) 我在Ubuntu 10.04上,我必须推送到Heroku的应用程序有一个Gemfile.lock,这个应用程序是由另一个程序员开发的.
当我使用bundle install
命令时,这将安装必要的宝石以运行应用程序rails s
.
是否bundle install
在我的Gemfile或Gemfile.lock中获取特定的gem?
我的Gemfile和Gemfile.lock不一样.
我必须删除Gemfile.lock吗?
这是我的Gemfile:
source 'http://rubygems.org'
#ruby '1.9.3'
gem 'rails', "= 3.1.11"
#gem "rake", "= 0.8.7"
gem 'racc'
# gem 'sqlite3'
#gem 'acts_as_list', '>= 0.1.0'
#gem 'acts_as_tree'
gem 'paperclip'
gem 'aws-s3', :require => 'aws/s3'
gem 'aws-sdk'
gem 'gravatar_image_tag'
gem 'kaminari'
gem 'jquery-rails', '~> 2.1'
gem 'RedCloth', '>= 3.301'
gem 'carmen', :git => 'git://github.com/alvatarc/carmen.git', :branch => '0.2.x'
#gem 'carmen'
gem 'sass-rails'
gem 'http_accept_language'
gem 'right_aws'
gem 'exception_notification'
group :development …
Run Code Online (Sandbox Code Playgroud) 我正在尝试将Vuelidate插件库导入到newsletter.vue.js组件中。
但是此导入返回错误:Uncaught SyntaxError:意外的标识符
如何将其导入到vue.js组件中?
首先,我正在使用webpack并首先致电Vuelidate:
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
require('./bootstrap');
window.Vue = require('vue');
import BootstrapVue from 'bootstrap-vue'
import Vuelidate from 'vuelidate'
Vue.use(BootstrapVue)
Vue.use(Vuelidate)
/**
* The following block of code may be used to automatically register your
* Vue components. …
Run Code Online (Sandbox Code Playgroud) 在一些教程中,我发现 jQuery 声明如下:
(function($){
//Init some code
})(jQuery);
Run Code Online (Sandbox Code Playgroud)
这在 jQuery 中是如何工作的?
我通常这样初始化 jQuery main.js:
$(document).ready(function(){
//Init some code
});
Run Code Online (Sandbox Code Playgroud) 我有这个数组:
array:4 [?
0 => "juego de tronos"
1 => "tagaryen"
2 => "house targaryen"
3 => "casa targaryen"
]
Run Code Online (Sandbox Code Playgroud)
我希望得到这个结果:
array:4 [?
0 => "juegodetronos"
1 => "tagaryen"
2 => "housetargaryen"
3 => "casatargaryen"
]
Run Code Online (Sandbox Code Playgroud)
我正在使用此功能但不起作用: array_map('trim',$myarray)
heroku ×2
gemfile ×1
gemfile.lock ×1
git ×1
github ×1
javascript ×1
jquery ×1
laravel ×1
laravel-5 ×1
laravel-5.2 ×1
laravel-5.3 ×1
php ×1
ruby ×1
vue.js ×1