坐等开奖啊!!
我遇到了 但是我的是在 PD 里,鼠标非常奇怪,但是触摸板正常
#6 楼 @zj0713001 恩,对,我越来越意识到这个方案的困难了,现在考虑用 Vue+JAVA 来分离前后端,Rails 这边可能需要看的东西太多了。
#3 楼 @hxh1246996371 大致明白了,那如果使用 Rails 来后端的话,这个 Api 这些怎么来提供呢?感觉和普通开发有很大不同 ( ・᷄ ᵌ・᷅ )
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
options=3<RXCSUM,TXCSUM>
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
nd6 options=1<PERFORMNUD>
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
stf0: flags=0<> mtu 1280
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=10b<RXCSUM,TXCSUM,VLAN_HWTAGGING,AV>
ether **
nd6 options=1<PERFORMNUD>
media: autoselect (none)
status: inactive
en2: flags=963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX> mtu 1500
options=60<TSO4,TSO6>
ether **
media: autoselect <full-duplex>
status: inactive
fw0: flags=8822<BROADCAST,SMART,SIMPLEX,MULTICAST> mtu 4078
ladder **
media: autoselect <full-duplex>
status: inactive
en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ether **
inet6 fe80::8a1f:a1ff:fe26:ff58%en1 prefixlen 64 scopeid 0x7
inet 192.168.31.93 netmask 0xffffff00 broadcast 192.168.31.255
nd6 options=1<PERFORMNUD>
media: autoselect
status: active
p2p0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 2304
ether **
media: autoselect
status: inactive
bridge0: flags=8822<BROADCAST,SMART,SIMPLEX,MULTICAST> mtu 1500
options=63<RXCSUM,TXCSUM,TSO4,TSO6>
ether **
Configuration:
id 0:0:0:0:0:0 priority 0 hellotime 0 fwddelay 0
maxage 0 holdcnt 0 proto stp maxaddr 100 timeout 1200
root id 0:0:0:0:0:0 priority 0 ifcost 0 port 0
ipfilter disabled flags 0x2
member: en2 flags=3<LEARNING,DISCOVER>
ifmaxaddr 0 port 5 priority 0 path cost 0
media: <unknown type>
status: inactive
utun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1380
inet6 fe80::2002:1911:69d:5900%utun0 prefixlen 64 scopeid 0xa
inet6 fdad:b058:b5ee:81b5:2002:1911:69d:5900 prefixlen 64
nd6 options=1<PERFORMNUD>
MAC 地址我已经处理了
#3 楼 @blacktulip 诶!可以了,但是为什么 localhost 不行了呢?
#31 楼 @suffering 抱歉,这两天一直有事,没有解决,又出现了新的问题,现在又出现了相同情况,只是又成了其他的库,头疼。明天再尝试解决一下
#25 楼 @suffering 哈哈 你说的对~早点休息吧!
#23 楼 @suffering 对的,我之前看到啦~但是我没有解决,是在 7 楼时,Rei 才给我了一个方法,因为现在遇到的问题和之前的已经不一样了,我重新编辑一下问题吧~谢谢你
#22 楼 @suffering 这个和 client 也有关系吗?因为我是在 deploy 到服务器上的时候才出现这个问题,在 client 上是完全没有问题的。
#20 楼 @suffering 现在不是通过 rvm 了 而是使用的 brightbox 的方式直接安装的,请看 7 楼 部署者在我这里应该也是 root,版本是 ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux-gnu]
#16 楼 @suffering 谢谢回复 可能确实有一定的关系,
which ruby
/usr/bin/ruby
现在我按照 Rei 的方法没有使用 Rvm 了 但是卡在了 nokogiri 的安装上
-----> Creating a temporary build path
-----> Fetching new git commits
-----> Using git branch 'basic-login'
Cloning into '.'...
done.
-----> Using this git commit
bling_bling (fa92e09):
> update Gemfile
-----> Symlinking shared paths
-----> Installing gem dependencies using Bundler
Fetching source index from https://gems.ruby-china.org/
Using rake (11.2.2)
Using CFPropertyList (2.3.2)
Using concurrent-ruby (1.0.2)
Using i18n (0.7.0)
Using minitest (5.9.0)
Using thread_safe (0.3.5)
Using tzinfo (1.2.2)
Using activesupport (5.0.0)
Using builder (3.2.2)
Using erubis (2.7.0)
Using mini_portile2 (2.1.0)
Using pkg-config (1.1.7)
Installing nokogiri (1.6.8)
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /var/www/sample_app/shared/bundle/ruby/2.3.0/gems/nokogiri-1.6.8/ext/nokogiri
/usr/bin/ruby2.3 -r ./siteconf20160909-4619-scgbpp.rb extconf.rb
Cannot allocate memory - /usr/bin/ruby2.3 -r ./siteconf20160909-4619-scgbpp.rb extconf.rb 2>&1
Gem files will remain installed in /var/www/sample_app/tmp/build-14733503545042/vendor/bundle/ruby/2.3.0/gems/nokogiri-1.6.8 for inspection.
Results logged to /var/www/sample_app/tmp/build-14733503545042/vendor/bundle/ruby/2.3.0/extensions/x86_64-linux/2.3.0/nokogiri-1.6.8/gem_make.out
An error occurred while installing nokogiri (1.6.8), and Bundler cannot
continue.
Make sure that `gem install nokogiri -v '1.6.8'` succeeds before bundling.
! ERROR: Deploy failed.
-----> Cleaning up build
Unlinking current
OK
Connection to IP closed.
! Command failed.
Failed with status 1 (4864)
其中/var/www/sample_app/tmp 路径之下的文件已经被 cleaning up 所以没有找到那个 log。
#9 楼 @Rei 请教一下 这个环境要如何配置,好像我又遇到了问题,按照您说的方法,我卸载了 rvm(卸载之后 ruby 已经看不到了)之后按照网页方法,重装了 ruby2.3 和 ruby2.3-dev。但是又遇到了类似问题,错误如下
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /var/www/sample_app/shared/bundle/ruby/2.3.0/gems/nokogiri-1.6.8/ext/nokogiri
/usr/bin/ruby2.3 -r ./siteconf20160909-4619-scgbpp.rb extconf.rb
Cannot allocate memory - /usr/bin/ruby2.3 -r ./siteconf20160909-4619-scgbpp.rb extconf.rb 2>&1
Gem files will remain installed in /var/www/sample_app/tmp/build-14733503545042/vendor/bundle/ruby/2.3.0/gems/nokogiri-1.6.8 for inspection.
Results logged to /var/www/sample_app/tmp/build-14733503545042/vendor/bundle/ruby/2.3.0/extensions/x86_64-linux/2.3.0/nokogiri-1.6.8/gem_make.out
An error occurred while installing nokogiri (1.6.8), and Bundler cannot
continue.
Make sure that `gem install nokogiri -v '1.6.8'` succeeds before bundling.
! ERROR: Deploy failed.
我同样是执行了 gem install nokogiri -v '1.6.8'
之后确认正确安装了,'gem list'之中已经有这个 nokogiri 了,但是仍然无法 deploy,我估计会不会是类似的原因?