cloud66

Lost connection to MySQL server during query on random simple queries

為{幸葍}努か 提交于 2020-01-02 10:09:49
问题 FINAL UPDATE: We fixed this problem by finding a way to accomplish our goals without forking. But forking was the cause of the problem. ---Original Post--- I'm running a ruby on rails stack, our mysql server is separate, but housed at the same site as our app servers. (we've tried swapping it out for a different mysql server with double the specs, but no improvement was seen. during business hours we get a handful of these from no particular query. ActiveRecord::StatementInvalid: Mysql2:

Lost connection to MySQL server during query on random simple queries

假装没事ソ 提交于 2020-01-02 10:09:02
问题 FINAL UPDATE: We fixed this problem by finding a way to accomplish our goals without forking. But forking was the cause of the problem. ---Original Post--- I'm running a ruby on rails stack, our mysql server is separate, but housed at the same site as our app servers. (we've tried swapping it out for a different mysql server with double the specs, but no improvement was seen. during business hours we get a handful of these from no particular query. ActiveRecord::StatementInvalid: Mysql2:

rake aborted! ArgumentError: same file:

北城以北 提交于 2019-12-24 02:47:04
问题 When I try to deploy my rails app at cloud66 , I get this error: rake aborted! ArgumentError: same file: /var/deploy/website/web_head/releases/20150315170454/public/assets/tinymce/custom_content.css and /var/deploy/website/web_head/releases/20150315170454/public/assets/tinymce/custom_content.css Tasks: TOP => assets:precompile Can someone please explain why I get this error? how to solve it? 回答1: How are you running your asset pre-compilation? By default, your assets will go to shared/assets

Faye setup in production

好久不见. 提交于 2019-12-10 10:24:38
问题 I've set up Faye on localhost, and works fine. I'm now trying to deploy it on DigitalOcean VPS, with Cloud66 deployment service. To run the command I use an "after_rails" hook. rackup $RAILS_STACK_PATH/faye.ru -s thin -E production This gives me the error: Error during deployment: Error during after_rails hook: Server: not_specified. Failed to run command: /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require': cannot load such file -- faye (LoadError) from /usr/local