I am trying to upgrade a current solr 4.10.4 setup to solr 5.5.5. Does anyone knows how do I upgrade the index?
You can run the IndexUpgrader tool. More details here:
https://lucene.apache.org/core/5_5_0/core/org/apache/lucene/index/IndexUpgrader.html
And in the migration doc:
https://lucene.apache.org/core/5_5_0/MIGRATE.html
Related
Rails 4.2 AR apparently is dependent on version 0.15 of pg. When I try to build my app with it I get "Failed to build gem native extension.". Problem lies with "checking for PQconnectionUsedPassword()". In order to get past this point, I upgraded my installation of Postgres, as it did not support that function. SO I installed the multi-version edition of Postgres, migrated my data to a 10.0 server, and then tried again. Same result. How can I fix this?
It seems like the native extension builder of the gem installation process is still seeing info from the old Postgres installation (or at least not seeing info from the new installation). How do I get it to see the new one (before you ask, the new one is running and the old one has been stopped? There is a header file that declares PQconnectionUsedPassword in one of the files within my new Postgres app, but I don't know exactly how that process works, so I don't know how to check if we're using the correct folder.
I'm new here and just installed ruby on rails on my mach using this tutorial.
I created a project folder and added an app to it.
Now I want to use postgresql, how do I install that in this created app... that is something I can't figure out.
I think I need to install Postgresql first.
Is the best way to do it form command line like this:
brew install postgresql
or
go to their website and download/install?
Remember I'm totally new to this so help is appreciated a lot
Thanks
EDIT: So I downloaded postgresql and installed it and I downloaded and installed pgadmin.
What's next is probably I have to create a database? and then somehow find a way to connect it with the application created in the workspace for ruby?
Postgres.app is great and has become the go-to for many Mac developers.
https://postgresapp.com/
I have a complete ruby project on my system that I downloaded from github.com and I want to run it on my Windows machine.
I have already installed Ruby and Rails on my system, but I have no idea how to run this project. The directory of this project is something like:
C:\Users\{username}\Desktop\BitcoinFundi\BitcoinFundi
How would I run this project on my system?
To run your Ruby on Rails application, use the following command:
rails server
This will start the server and you will be able to access the application in your browser at http://localhost:3000. Port 3000 is default and you can change it in the application settings.
To run a Ruby script use:
ruby name_of_script.rb
You should check out various resources and tutorials on getting started with rails.
As you say in your comment this is your first experience with Ruby on Rails, I think you should follow through chapter 1 and 2 (at least) of Ruby on Rails Tutorial. After that you should have a better understanding of how you start up a rails app and configure the DB. You also need a bunch of other libraries and software such as mysql from the sounds of it.
You should also read Getting Started with Rails. Section 4 covers how to start the default rails server.
Here is a guide on setting up a Rails environment for Windows, which is one of many guides, that shows you some of the needed steps to get a fully working environment.
I am working on an application that makes use of Ruby on Rails. There are 5 of us in the group and so we are using GitHub. I have rails setup on my computer and am able to create my own projects and databases from scratch but when I clone our existing project from GitHub and try to start the server I run into all sorts of issues.
I should mention that I am working on a Windows 7 machine and the initial project was created on a Linux machine. I imagine this could be the source of some of the issues.
Bottom line, when I am in the necessary folder and I type rails s I get a lengthy error message that starts with:
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/mysql2-0.3.11-x86-mingw32
/lib/mysql2/client.rb:44:in `connect': Access denied for user 'root'#'localhost'
(using password: NO) (Mysql2::Error)
There is a ton more information that I could provide but I'm not sure what all is needed to help solve this issue. I am a beginner (both with StackOverflow and RoR) so I apologize for not being more clear and concise.
Thanks in advance.
Additional Information:
mysql: Ver 14.14 Distrib 5.5.30, for Win 64 (x86)
ruby: Ver 1.9.3p125
rails: Ver 3.2.0
mysql gem: Ver 2.9.1
mysql2 gem: Ver 0.3.11
It seems that your rails app is trying to log into MySQL with the wrong credentials.
Update the file config/databases.yml to set the rights credentials.
Note that this file should not be checked into version control since it is different for each member of the team.
I'm currently migrating my Ruby on Rails 2.3.8 apps to a new server running Apache 2.2.17 on FreeBSD 8.1 with Passenger 3, Ruby Enterprise Edition 1.8.7. For some reason, despite the stylesheets being accessible, the apps are not loading them. The code is correct and runs fine on the old setup. Has anyone ran into this?
Update: Wowwww it was an issue with the version of chromium. All is good after updating. Thanks for the help everyone.
I'd check on the permissions -- what user is the ruby process running under (for passenger), and does that user have access to the stylesheet in question.
you can use ls -l to see permission sets for the stylesheets.
This was an issue with the edge-version of Chrome I was using... Should have checked another browser before posting.