我有一个使用Webpack的hello world Vue应用程序设置,并使初始的App组件正常工作并安装到正文.虽然在该App组件中我无法弄清楚如何使用我制作的更多组件.
main.js
import Vue from 'vue'
import App from './app.vue'
new Vue({
el: 'body',
components: { App }
})
Run Code Online (Sandbox Code Playgroud)
app.vue
<template>
<div class="message">{{ message }}</div>
</template>
<script>
export default {
data () {
return {
message: 'Hello World'
}
}
}
</script>
Run Code Online (Sandbox Code Playgroud)
我试过了
import TopBar from './top-bar.vue'
Run Code Online (Sandbox Code Playgroud)
在app.vue的main.js和script部分中,然后尝试使用
<top-bar></top-bar>
Run Code Online (Sandbox Code Playgroud)
没有运气.
我想我错过了如何正确注册组件,例如在Vue文档中:
Vue.component('top-bar', TopBar);
Run Code Online (Sandbox Code Playgroud)
但我认为在使用webpack和vue-loader时我需要做一些不同的事情.
我已经设法在一个Linux CentOS服务器上使用Apache,Git,PHP,PostGreSQL和MySQL 部分设置Gitlab.我正在运行Chef Cookbook版本.我从这里得到了转速.我想用它来更好地和更直观地管理我的Git repo,这似乎是一个不错的选择.但是现在我遇到了让它发挥作用的问题.
只是为了让它真正起作用并更新所有文件我决定使用重新运行配置gitlab-ctl reconfigure.第二次运行确实有效:
Chef Client finished, 4 resources updated
gitlab Reconfigured!
Run Code Online (Sandbox Code Playgroud)
查看完整日志
主机已经把NGINX放在了8080而没有进入与在80端口运行的Apache的争论,我们在那里运行了一个LAMP项目.但现在Ruby的Unicorn Web Server似乎与NGINX相冲突.我和NGINX一起工作了一点点,并没有多少,这是我第一次尝试Gitlab.无论如何,这是我在我的主人的帮助下想出来的.
当我登录testserver.domain.net并传递以下命令时:
netstat -ln |grep 8080 我知道了
tcp 0 0 127.0.0.1:8080 0.0.0.0:* LISTEN
Run Code Online (Sandbox Code Playgroud)
所以有些东西在8080运行根据我的主机,它应该在0.0.0.0:8080上运行.当我们检查那个端口上运行的是什么时,我们看到了
netstat -tupln |grep 8080
tcp 0 0 127.0.0.1:8080 0.0.0.0:* LISTEN 21627/unicorn maste
Run Code Online (Sandbox Code Playgroud)
当我们检查进程ID 21627时,我们看到了
cat /proc/21627/cmdline
unicorn master -E production -c /var/opt/gitlab/gitlab-rails/etc/unicorn.rb /opt/gitlab/embedded/service/gitlab-rails/config.ru
Run Code Online (Sandbox Code Playgroud)
这是一个Ruby流程,而不是NGINX流程.
所以NGINX似乎与Unicorn相冲突.
当我们检查nginx的日志时,我们发现nginx无法正常运行,因为:
tail -f /var/log/gitlab/nginx/error.log
2014/07/28 09:43:10 [emerg] 23122#0: bind() to 0.0.0.0:8080 failed (98: Address …Run Code Online (Sandbox Code Playgroud) 我的测试服务器上有一个git master分支testvps.subdomain.domain.com:~public_html/domain.com/ZendSkeletonApplication/.我现在在同一台服务器上运行Gitlab CentOS rpm并运行http://testvps.subdomain.domain.com:8888
我需要导入这个现有的本地库到Gitlab(参见克隆回购较早前的问题在这里使用ssh)相同的测试服务器上.这个repo是主分支而不是原始分支原点,它是Github上的ZendApplication.对于passworded访问,Gitlab建议像https://username:password@gitlab.com/company/project.git文档提到的链接将裸存储库复制到/ home/git /
用户git只是以某种方式添加了主目录未创建我想这必须手动完成 - 请参阅此处的链接.不确定是否需要进行适当的进口.这是一个主分支需要一种不同的方法来导入现有的git存储库,看起来有20多次提交.也许我应该让大师成为新的起源?我应该怎么做呢?
我已经添加了gitlab .git repo作为新的远程.
git remote set-url origin git@testvps.sub.domain.com:root/repo.git
git remote -v
origin git@testvps.sub.domain.com:root/repo.git (fetch)
origin git@testvps.sub.domain.com:root/repo.git (push)
Run Code Online (Sandbox Code Playgroud)
当我尝试推送它时,我收到了git用户密码的请求
git push -u origin master
git@testvps.sub.domain.com's password:
Run Code Online (Sandbox Code Playgroud)
这不应该是我需要的,也不应该.我怎样才能解决这个问题?
PS sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production无法正常工作,因为它缺少命令
我有MacPorts安装了Ruby on Rails,我从昨天起就一直在更新和改造,因为我想重新学习这门语言.
眼镜
ruby -v
ruby 1.8.7 (2012-02-08 patchlevel 358) [i686-darwin10]
rails -v
Rails 3.0.3
gem -v
1.8.5
Run Code Online (Sandbox Code Playgroud)
旅程
到目前为止,使用Ruby,Rails和Gems在我的Mac上工作已经是一段艰难的旅程.在关注教程后,我决定安装/更新Rails API文档,我遇到了这些错误:
Password:
NOTE: Gem::SourceIndex.from_installed_gems is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::SourceIndex.from_installed_gems called from /opt/local/lib/ruby/site_ruby/1.8/rubygems/commands/rdoc_command.rb:58.
NOTE: Gem::SourceIndex.installed_spec_directories is deprecated, use Specification.dirs. It will be removed on or after 2011-11-01.
Gem::SourceIndex.installed_spec_directories called from /opt/local/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:47.
NOTE: Gem::SourceIndex.from_gems_in is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::SourceIndex.from_gems_in called from …Run Code Online (Sandbox Code Playgroud) 我在 OSX Mavericks 上使用 MacPorts SVN 1.8.9:
svn --version
svn, version 1.8.9 (r1591380)
compiled May 15 2014, 11:06:03 on x86_64-apple-darwin13.1.0
Run Code Online (Sandbox Code Playgroud)
我有一个svn2ftp的代表,我用它来与开发人员合作。它是版本控制和实际站点之间的一座很好的桥梁。在 ~/.subversion/config我有:
password-stores = keychain
store-auth-creds = yes
Run Code Online (Sandbox Code Playgroud)
在~/.subversion/servers我有
username = myusername
store-passwords = yes
store-plaintext-passwords = yes
Run Code Online (Sandbox Code Playgroud)
但每次执行 svn x 时,都会要求我输入 OSX 用户名的密码,而不是添加的用户名,并且密码也不存储在钥匙串中:
svn log
Authentication realm: <http://www.svn2ftp.com:80> repo
Password for 'osx-username':
Run Code Online (Sandbox Code Playgroud)
密码既不以纯文本形式存储在其他地方。我是否可以在其他地方进行这些更改,因为此 SVN 来自 MacPorts?我不这么认为。我在这里缺少什么?配置文件权限问题?请参阅这里的权限:
ls -la
total 48
drwxr-xr-x 6 root staff 204 Jan 23 2010 .
drwxr-xr-x+ 150 jasper staff 5100 Jun …Run Code Online (Sandbox Code Playgroud) 我正在使用 WPBakery 的“视觉作曲家”视频播放器将 YouTube 视频添加到 WordPress 网站。我无法真正发布该网站,因为它是私人的。但我是“视觉作曲家”的新手。
我使用 VC 视频播放器将相关的 YouTube 视频添加到右侧的 2 列“行”中。这一切在桌面上都工作正常,但是一旦你缩小浏览器使其处于“响应”模式,就像手机/平板电脑的宽度一样,假设 700px,youtube 视频就会停止工作......
您可以看到 YouTube 背景图像,但无法用鼠标悬停来启动/激活视频,几乎就像视频本身不存在而只有保持图像一样。
有谁知道如何配置设置以便您也可以在手机/平板电脑上激活视频?据我所知,我还没有选择“在任何设备上隐藏”,因此欢迎任何帮助。也许这是主题的一个错误,但由于我是 VC 新手,我希望有一些设置可以解决这个问题。
刚刚添加了WP Pro Quiz并在本地添加了一个测验来测试它。当我单击按钮加载测验时,它根本没有加载,并且出现以下错误:
Uncaught TypeError: Object [object Object] has no method 'wpProQuizFront'
Run Code Online (Sandbox Code Playgroud)
错误所在的jQuery之后加载的脚本是:
<script type="text/javascript">
jQuery(document).ready(function($) {
$('#wpProQuiz_1').wpProQuizFront({
Uncaught TypeError: Object [object Object] has no method 'wpProQuizFront'
quizId: 1,
mode: 0,
globalPoints: 1,
timelimit: 0,
resultsGrade: [0],
bo: 0,
json: {"1":{"type":"cloze_answer","id":1,"points":1,"correct":[]}} });
});
</script>
Run Code Online (Sandbox Code Playgroud)
它是从文件 WpProQuiz_View_FrontQuiz.php 的第 371 行加载的:
<script type="text/javascript">
jQuery(document).ready(function($) {
$('#wpProQuiz_<?php echo $this->quiz->getId(); ?>').wpProQuizFront({
quizId: <?php echo (int)$this->quiz->getId(); ?>,
mode: <?php echo (int)$mode; ?>,
globalPoints: <?php echo (int)$globalPoints; ?>,
timelimit: <?php echo (int)$this->quiz->getTimeLimit(); ?>,
resultsGrade: …Run Code Online (Sandbox Code Playgroud)