rails 4.1 can't deploy via capistrano 3

爷,独闯天下 提交于 2019-11-30 03:38:30
Viktor Oleksyn

As was written above, probably, you have not enough RAM.

I solved problem by adding SWAP file on my Ubuntu 14.04 server:

Under the root:

dd if=/dev/zero of=/swapfile bs=1024 count=512k
mkswap /swapfile
swapon /swapfile

Add next line to /etc/fstab:

 /swapfile       none    swap    sw      0       0 

and:

echo 0 > /proc/sys/vm/swappiness
sudo chown root:root /swapfile 
sudo chmod 0600 /swapfile

check SWAP(maybe need reloading):

swapon -s 

How To Add Swap on Ubuntu 14.04 @ Digital Ocean Community

kpblc

if someone have same error - problem was on hosting. server have not enough ram(512mb), and process of compilation css/js was killed every time. than we change rate plan, which has 1gb ram, all deployed successfully. SO if you assets precompile failed - just try to add some resources to server. P.S. similar problem i found here Capistrano deploy - assets precompile error

Try rebooting the server.Worked for me.

You appear to have an outdated version of libyaml

Update libyaml.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!