chris349

Activity Graph

Page 1 of 1

2018-11-29

[06:45:28] chris349: Ping timeout: 245 seconds

2018-11-22

[05:20:57] chris349: has joined #ruby
[05:21:49] chris349: I install RVM which installs the latest ruby version automaticall. Then I install the version I need and uninstall the one RVM initially installed
[05:21:59] chris349: How can I just install RVM with a specific Ruby version?
[05:22:55] chris349: nchambers, But I dont have RVM yet
[05:23:10] chris349: \curl -sSL https://get.rvm.io | bash -s stable --ruby
[05:23:17] chris349: How do I put the Ruby version into that command?
[05:26:13] chris349: Amazing, that works. Now if only they had documented that!

2018-11-21

[00:27:26] chris349: Quit: Leaving

2018-11-20

[23:23:31] chris349: has joined #RubyOnRails
[23:24:07] chris349: I try to make a new db migration, but I get some strange error about the code thats never popped up before. How can I just manually make the migration so I dont have to deal with this unrelated problem right now?

2018-09-07

[06:09:13] chris349: Ping timeout: 245 seconds

2018-09-06

[23:39:09] chris349: has joined #RubyOnRails

2018-08-04

[00:30:08] chris349: Can I just tell the gem command to ignore SSL certifcate errors? Dumb idea, I know. But I place all the possible certifcates in the rubygems/ssl_certs but I still keep getting validation errors
[00:34:17] chris349: havenwood, The certs are installed, but I still get errors
[00:41:20] chris349: Heres the latest one: ERROR: Could not find a valid gem ┬┤bundler` (>=0), here is why: Unable to download data from https://rubygems.org SSL_connect returned=1 errno=0 state-SSLv2/v3 read server hello: A tlsv1 alert protocol version
[05:56:29] chris349: Ping timeout: 260 seconds

2018-08-03

[23:01:42] chris349: has joined #ruby
[23:02:05] chris349: I install Ruby for Windows and gem install fails with an SSL error. How do I resolve this? Same command works with Linux system.
[23:29:57] chris349: havenwood, I need a path to ruby.exe for a Windows program. With the WSL can I use RVM and them point a Windows app to the correct ruby install?
[23:49:35] chris349: havenwood, I just want to install ruby and some gems to debug a project on my machine, But the gems dont install due to SSL errors

2018-07-31

[00:28:34] chris349: has joined #ruby
[00:29:16] chris349: When I run rake db migrate it takes a long time to start up because its loading a bunch of irrelevant code, gems, etc. Is tehre any way to stop this on have db migrate only load the bare minimum to get the job done?
[14:40:23] chris349: Ping timeout: 244 seconds

2018-06-23

[00:52:42] chris349: Ping timeout: 245 seconds

2018-06-22

[08:46:21] chris349: Ping timeout: 240 seconds
[12:59:22] chris349: has joined #ruby
[17:02:57] chris349: Ping timeout: 248 seconds
[17:35:59] chris349: has joined #ruby

2018-06-21

[09:58:25] chris349: Ping timeout: 248 seconds
[17:30:05] chris349: has joined #ruby

2018-06-19

[06:40:33] chris349: Ping timeout: 248 seconds
[17:57:23] chris349: has joined #ruby

2018-06-18

[19:02:18] chris349: has joined #ruby

2018-06-16

[05:15:58] chris349: Ping timeout: 265 seconds

2018-06-15

[08:56:47] chris349: Ping timeout: 256 seconds
[18:20:08] chris349: has joined #ruby

2018-06-12

[22:52:47] chris349: has joined #ruby
[22:53:05] chris349: I try to do a bundle install as non-root user, because when you run as root it gives you warning to NOT run as root
[22:54:09] chris349: But then it pops up a prompt asking for the "password" (not clear which "password" is needed). I type my system user password, but then it says: Gem::FilePermissionError: You don't have write permissions for the /usr/local/rvm/gems/ruby-2.1.2/wrappers directory
[22:54:25] chris349: But if I use sudo I can use the command it gives to install that one particular gem
[22:54:37] chris349: But then bundle install gets stuck and I need to run a sudo command to manually install the next gem
[22:54:56] chris349: So how can I configure the bundle install sudo/password prompt to work correctly and install the gem, instead of failing
[22:57:28] chris349: What is the difference between --user-install and --path vendor/bundle? Which is better?
[22:57:47] chris349: And if it warns to me run as root why does it fail as non-root? Shouldnt it just work?

2018-05-18

[10:27:25] chris349: Ping timeout: 256 seconds
[17:52:58] chris349: has joined #ruby
[17:57:32] chris349: Client Quit

2018-05-17

[05:29:09] chris349: Ping timeout: 264 seconds
[05:55:36] chris349: has joined #ruby

2018-05-16

[03:48:50] chris349: has joined #ruby
[09:35:57] chris349: Ping timeout: 240 seconds
[16:30:54] chris349: has joined #ruby

2018-05-15

[03:17:07] chris349: Ping timeout: 268 seconds

2018-05-12

[03:11:30] chris349: has joined #ruby
[03:11:34] chris349: Client Quit
[03:12:01] chris349: has joined #ruby
[03:13:03] chris349: I have a rake task that runs fine from a crontab, but its getting to complex so I want to move it to a shell script. I copy all the env variables from my crontab, such as RAILS_ENV, but when I run the script it errors out because its not running in the right RAILS_ENV
[03:13:20] chris349: Why is it ignoring this from a shell script but working fine in a crontab?
[03:21:54] chris349: eldritch, I dont export it in the crontab. Whats the right way to export it in a shell script?

2018-05-10

[00:26:32] chris349: Quit: Leaving

2018-05-09

[01:51:06] chris349: Read error: Connection reset by peer
[01:51:38] chris349: has joined #ruby
[05:45:03] chris349: Ping timeout: 255 seconds
[16:31:46] chris349: has joined #ruby

2018-05-08

[05:51:57] chris349: Ping timeout: 264 seconds
[16:46:20] chris349: has joined #ruby

2018-05-07

[16:36:59] chris349: has joined #ruby

2018-05-05

[01:18:11] chris349: Ping timeout: 265 seconds

2018-05-04

[05:23:09] chris349: Ping timeout: 263 seconds
[16:12:11] chris349: has joined #ruby

2018-05-03

[10:22:57] chris349: Ping timeout: 248 seconds
[13:27:57] chris349: has joined #ruby

2018-05-02

[05:48:05] chris349: Ping timeout: 240 seconds
[16:16:47] chris349: has joined #ruby

2018-04-30

[09:25:21] chris349: Ping timeout: 248 seconds
[13:08:02] chris349: has joined #ruby

2018-04-27

[03:51:43] chris349: has joined #ruby
[03:52:22] chris349: How can I stop nill method errors? I get them too often for stupid things. Right now I can not run a db:migrate because an smtp server setting is missing! SMTP server setting should have nothing to do with a db:migrate
[04:11:50] chris349: I have the smtp settings in /production.rb set to load from secrets.yml
[04:12:15] chris349: Is there any way to make it better so this unrelated error doesnt happen? Even if the SMTP setting is wrong db:migrate should not fail!
[08:40:27] chris349: Ping timeout: 240 seconds
[16:11:13] chris349: has joined #ruby

2016-05-11

[00:01:47] chris349: Basically the ImageMagick package of my OS was updated and now the Ruby code does not run because it uses the rmagic gem.
[00:04:25] chris349: Yea it seems to think its smarter than me, deleting the files and trying to bundle install again
[00:04:52] chris349: ... but gem uninstall didnt work
[00:05:24] chris349: ... and gem update is reinstalling EVERYTHING. I hope it doesnt break something else
[00:20:31] chris349: Its not regenerating all the files of the gem. Is there any command specifically to force reinstall one gem?
[00:31:53] chris349: I think bundle install is failing but there is no error. At the end it says Please report any bugs is that normal?
[05:02:58] chris349: Ping timeout: 265 seconds

2016-05-10

[23:49:21] chris349: has joined #ruby
[23:57:01] chris349: How can I force the reinstall of a gem?

2015-05-27

[20:01:22] chris349: has joined #ruby
[20:05:32] chris349: Client Quit

2015-05-26

[01:14:22] chris349: Ping timeout: 255 seconds

2015-05-25

[23:12:25] chris349: has joined #ruby
[23:14:51] chris349: What is the best way to run the rails server from systemd? When I run it directly it works, but I need it to load automatically upon bootup. When I try to run it from systemd it fails saying: require: cannot load such file -- bundler/setup (LoadError)
[23:20:53] chris349: I run the command directly and there is no issue: /usr/local/rvm/rubies/ruby-2.2.1/bin/ruby /opt/errbit/script/rails server
[23:21:29] chris349: But when I run it from the systemd script it does not run and gives this error: require: cannot load such file -- bundler/setup (LoadError)
[23:25:28] chris349: Is there any way to run rvm wrapper with the defaults?
[23:27:00] chris349: I really dont understand how rvm wrapper works
[23:27:58] chris349: I try /usr/local/rvm/bin/rvm wrapper /opt/errbit/script/rails server but it fails with the error Unknown ruby interperter version, Could not load ruby /opt/errbit/script/rails
[23:28:19] chris349: I just use rvm to install ruby. I only have one version of ruby installed
[23:28:53] chris349: Yes I read the help but I dont understand the terms used, for e.g what is ree?
[23:30:14] chris349: All I know is I run this command in the console and everything works as expected: /usr/local/rvm/rubies/riby-2.2.1/bin/ruby /opt/errbit/script/rails server and everything works perfect.
[23:30:27] chris349: How can I adapat this command to work in systemd so it loads at boot time?
[23:31:12] chris349: ebonics, I only need and have one version of ruby installed
[23:33:21] chris349: jhass, ruby-2.2.1
[23:37:34] chris349: Yes it seems to have to do with the paths, how can I set the path correctly from the systemd script?
[23:38:49] chris349: zenspider, I am using the full path, but it seems that other things are called that depend on the enviroment path, which is not set through systemd
[23:43:24] chris349: jhass, No I am not sure how to properly use rvm wrapper
[23:45:24] chris349: jhass, In that case, how will it know where to find the actual code to run?
[23:46:14] chris349: jhass, How/where is WorkingDirectory set?
[23:52:28] chris349: jhass, Thank you, that actually works
[23:54:27] chris349: I set User=root

2015-04-30

[03:15:56] chris349: What is the command to start the built in ruby webserver?
[03:54:42] chris349: Maybe I phrase my question wrong. I have the ruby code, but it is web-based. How do I start the built in webserver to run that code and view it in a web browser?
[03:56:30] chris349: ponga, I have the code but I am not certain how to run it!
[03:57:54] chris349: I am using Linux. I dont know what framework was used and I do not have any instructions.
[03:58:56] chris349: ponga, Yes. Normally I use Phusion Passengear and run the code from Apache webserver, but in this case I want to run it directly.
[03:59:19] chris349: sevenseacat, Yes I agree. I have do it before and its a generic command.
[04:01:51] chris349: havenwood, Yes and I have installed all the required gems.
[04:02:42] chris349: ponga, The code is in a directory on a Linux machine. I dont know know to run it.
[04:03:17] chris349: Yes I have root access to the machine.
[04:04:48] chris349: There is no .rb file in the directory.
[04:09:57] chris349: ponga, Yes there are subdirectories with .rb files but I am pretty sure what I have used before was a generic command that didnt reference any project specific file
[04:10:14] chris349: I am pretty sure also that the server starts on port 3000, not 6000
[04:12:43] chris349: The contents of the directory are: app/ bin/ config/ db/ Gemfile Gemfile.locl Rakefile README.rdoc test/ vendor/
[04:14:06] chris349: I had already tried that. It returns: Error: Command not recognized
[04:15:29] chris349: How involved would it be to add a dummy rails project? I am pretty sure this code is missing something.
[04:16:10] chris349: zotherstupidguy, Bundle install was able to install all the gems without a problem
[04:17:13] chris349: zotherstupidguy, Correct.
[04:17:28] chris349: I am not sure if this is an issue but Gemfile has no gems, they are all in Gemfile.lock
[04:18:42] chris349: Brb, refilling my cup of water.
[04:22:02] chris349: This is Gemfile.lock: http://pastebin.com/2C7eV5z3

2014-06-18

[01:14:03] chris349: Does anyone know what is the correct way to install the gems for system-wide usage instead of the default of per-user?
[01:16:33] chris349: The problem is when I run bundle install it gives an error that says to run bundle install --no-deployment but when I run that it gives an error to run bundle update minitest instead but that command gives me the same error that says to run bundle install --no-deployment
[01:17:30] chris349: I also dont quite understand the error: Run `bundle install` elsewhere because I cd .. and run bundle install but it gives an error that Gemfile not found and when I cd back it gives the same error.
[01:19:06] chris349: So basically bundle install --deployment only works once and then to update it is an issue.

2014-06-17

[03:53:59] chris349: After I run bundle install I still get errors about missing gems. When I comment out the erroring module in Gemfile that parcicular error goes away. How can I force Gemfile to see the installed modules?

2014-06-07

[03:07:04] chris349: I need to run the command bundle install as a particular user, but my bundle is in /root/.rvm/gems/ruby-2.1.1/bin/bundle How can I install this in the correct location that is not user-specific (e.g. /usr/local/bin)
[03:12:57] chris349: I think I got it to work with the Multi-User install. But now when I run bundle it says dont run as root, but when I do sudo -u apache /usr/local/rvm/gems/ruby-2.1.1@global/bin/bundle install then I get an error message: /usr/bin/env: ruby_executable_hooks: No such file or directory
[03:14:46] chris349: So what would be the correct way to run bundle install as not-root?
[03:17:42] chris349: RubyPanther, I really dont want to get into complicating things. I am just trying to get this running through apache in the simplest manner possible.
[03:25:17] chris349: The commands all work as root but not as user apache. Is there a better way to run the code through apache other than rvm + passenger?
[03:30:19] chris349: Sigma00, Does that pass the HTTP header REMOTE_USER?
[03:34:39] chris349: I follow the instructions to install rvm ruby for all users, but when I do gem install bundle it is placing it in: /root/.rvm/gems/ruby-2.1.1/bin/bundle
[03:35:07] chris349: for e.g. the gem binary is in /usr/local/rvm/rubies/ruby-2.1.1/bin/gem
[03:40:07] chris349: RubyPanther, How can I find out what is the "normal way"
[03:40:55] chris349: rvm is installed as system-wide. However, it is not installing the gem for system-wide usage.
[03:44:16] chris349: What is the correct way to install bundler for system-wide usage? I have /usr/local/rvm/rubies/ruby-2.1.1/bin/gem but when I invoke it to install bundler it installs bundler in /root/
[03:46:51] chris349: So gem install bundler is not needed?
[03:51:28] chris349: Would it be recommended instead to manage the paths manually?
[03:59:22] chris349: The only thing I have with root is: SPEC CACHE DIRECTORY: /root/.gem/specs
[04:00:19] chris349: poka, Bundle install gives the error: Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine.
[04:00:36] chris349: I consider this the problem because the web server does not run under root.
[04:01:36] chris349: Yes it lets me run it but then says: installing your bundle as root will break this application for all non-root users on this machine
[04:11:19] chris349: Im using the standard x86_64 platform. What changes would need to be made to rvm to permit code to run through a webserver?

2014-05-07

[02:49:08] chris349: How can I locate the Devise initializer?
[02:51:59] chris349: Radar, thanks that works.
[22:42:01] chris349: I am able to access the appliation through the built-in web server on port 3000. But when I attempt to use the same code and access it through Apache web server instead I get an error: "uninitialized constant FullcalendarEngine::Engine (NameError)"
[22:43:36] chris349: nobitanobi, all ENV are production
[22:50:51] chris349: wdawson, all ENV are production when accessed through Apache

2014-05-06

[06:45:06] chris349: I installed ruby on a server but it seems to have hijacked the console. Is there any way to revert this?
[06:55:15] chris349: popl, Its gone from my scrollback, but when I cd into a directory I was getting messages about ruby
[07:00:26] chris349: Got one, I type the command: cd test/public/ and then it says: RVM used your Gemfile for selecting Ruby, it is all fine - Heroku does that too
[07:03:32] chris349: I dont think there is any issue.
[07:03:42] chris349: I simply want to know why and how to disable the hijacking of my consile
[07:03:51] chris349: When I type cd it should change directory and nothing more.
[07:04:55] chris349: This is immediatly after I run the installer
[07:06:38] chris349: I run RVM to install ruby, is that incorrect?
[07:22:41] chris349: What would be the best way to install ruby? I simply need to run an application through Apache, that is giving bundle errors with the rvm installation.
[07:26:25] chris349: Is there any way to ignore one particular gem just to see what happens?
[21:23:48] chris349: When I specify a module from git in Gemfile it gets installed to a different directory and then when the application runs it can not detect the module. Is there any way to manually install these to the standard directory?
[21:28:59] chris349: https://gist.github.com/anonymous/5d94d6a2352426cbec60 The gems from git are the ones that give errors. Those are being installed in /usr/local/rvm/gems/ruby-2.1.1/bundler/gems while those that do not give errors are in /usr/local/rvm/gems/ruby-2.1.1/gems
[21:40:01] chris349: jenrzzz, Yes but it places the modules sourced from git in a diffrent directory.
[21:50:13] chris349: Is there any way I can take a gem from git and manually install it to a specific directory:>
[22:27:09] chris349: What is the best way to solve the errors Could not find gem?
[22:29:44] chris349: The only issue I seem to face is the gems from git show the Could not find gem error. I have gotten past most of these by manually doing a git clone, gem build ZYX.gemspec and gem install XYZ.gem. However the last two are not solved by this process.
[22:31:32] chris349: https://gist.github.com/anonymous/5d94d6a2352426cbec60
[22:37:10] chris349: Once I run bundle install --deployment what is the correct way to make a change to Gemfile?