Tag: ubuntu

ActionView :: Template ::错误(application.css未预编译)Rails

我在我的生产服务器下面: Started GET “/” for 101.160.190.206 at 2013-09-05 00:11:28 +1000 Processing by HomeController#index as HTML Rendered home/index.html.erb within layouts/application (0.5ms) Completed 500 Internal Server Error in 2ms ActionView::Template::Error (application.css isn’t precompiled): 4: 5: 6: <meta name="description" content="”> 7: “all” %> 8: 9: 10: app/views/layouts/application.html.erb:7:in `_app_views_layouts_application_html_erb__153052184121312410_16560580′ 我运行rake assets:precompile ,它似乎正确编译,因为我可以在资产文件中看到,但我仍然得到 We’re sorry, but something went wrong. 错误。 […]

Capistrano在ssh登录后更改用户 – 作为另一个用户部署

在我的staging.rb文件中,我需要连接“ubuntu”用户名 server ‘**.**.****.**’, user: ‘ubuntu’, roles: %w{web app db} 在我的deploy.rb中 set :deploy_to, -> { “/var/www/myuser/myuser.com/capi” } 服务器 var/www/myuser/myuser.com# ls -la total 32 drwxrwx— 8 myuser myuser 4096 Jul 9 14:54 . drwxrwx— 5 myuser myuser 4096 Feb 26 17:18 .. drwxrwx— 7 myuser myuser 4096 May 7 13:48 beta drwxr-xr-x 2 myuser myuser 4096 Jul […]

无法在ubuntu上使用PostgreSQL连接Rails应用程序

我无法将My rails应用程序与在某个实例上运行的Ubuntu服务器上运行的PostgreSQL数据库连接。我使用以下命令创建了新用户和密码。 1-sudo -u postgres createuser -s user1 2-sudo -u postgres psql. 3-postgres=\\password userpass 检查我的database.yml文件,如下所示。 database.yml的: development: adapter: postgresql encoding: unicode database: 100sallon_development pool: 5 username: user1 password: ******* host: 10.*.*.* test: adapter: postgresql encoding: unicode database: 100sallon_test pool: 5 username: user1 password: ******* host: 10.*.*.* production: adapter: postgresql encoding: unicode database: 100sallon_production pool: 5 […]

你已经拿破了包 – Postgres gem for rails

因此,当我尝试进行捆绑安装时,我被告知确保pg gem已成功安装,因此当我执行gem install pg vx.xx我得到: Building native extensions. This could take a while… ERROR: Error installing pg: ERROR: Failed to build gem native extension. /home/adam/.rvm/rubies/ruby-2.1.2/bin/ruby extconf.rb checking for pg_config… yes Using config values from /usr/bin/pg_config You need to install postgresql-server-dev-XY for building a server-side extension or libpq-dev for building a client-side application. You need to […]

尝试使用RVM安装Ruby时,为什么会出现需求错误?

我想在我的Ubuntu系统上安装带有RVM的Ruby 2.0并收到错误消息: rvm 1.23.5 (master) ubuntu 12.04 (LTS) **—- Error message: ——-** rvm install 2.0.0 Searching for binary rubies, this might take some time. Checking requirements for ubuntu. Installing requirements for ubuntu. Updating system……………………………………………………………………………………………………………………. Error running ‘requirements_debian_update_system ruby-2.0.0-p247’, please read /home/emzett/.rvm/log/1381812161_ruby-2.0.0-p247/update_system.log Requirements installation failed with status: 100.

如何在Linux中设置Ruby环境?

~$ ruby -v ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux] 注意:我不想使用RVM设置ruby路径