I have my RubyMine client running on my Windows machine and my development console and server running on a local Ubuntu VmWare because of problems running several of the gems on windows.
There's suppose to be an option to use RubyMine's Remote debugging to support such a setup. But I seem to have trouble running it.
I tried to follow these guides -
http://blogs.jetbrains.com/ruby/2009/05/ruby-remote-debug/
http://www.jetbrains.com/ruby/webhelp/remote-debugging.html
But I can't seem to get it working, did anyone ever got a setup like this working?
Could you please describe the steps what you did exactly at RubyMine's official support forum?
Here it is: http://devnet.jetbrains.net/community/ruby?view=discussions&start=0
Regards,
Oleg
Related
I have a rails app that needs to be put online (anywhere) - I am using a windows machine, I tried to deploy it using Heroku but that was a huge pain. The app only needs to go online so I can show it to someone - It only needs to be up about a week, so setting up a Virtual Linux system on my windows laptop is not a preference for me.
It sounds like you need to follow a specific procedure to get Gemfile.lock to work for Heroku. This answer has some basic instructions: https://stackoverflow.com/a/21488679/693349
However, you'd probably do better to read the full Heroku docs about "Deploying a Ruby Project Generated on Windows": https://devcenter.heroku.com/articles/bundler-windows-gemfile.
Have you tried Digital Ocean?
https://www.digitalocean.com/features/one-click-apps/ruby-on-rails/
Normally deployment at heroku works like charm, what was the problem?
Try Capistrano gem. Is an especific gem to deploy Ruby on Rails projects and it works perfect!
You have a good tutorial here to configure Capistrano.
I'm on Windows 8.1 and have been trying to get Rails to work on my computer for quite some time now. I followed the guides to install Ruby and Rails and everything correctly, but whenever I try to execute any kind of Rails command through PowerShell, I get an error with one of the gems. I can't run the server command, can't generate, can't run console. Here is the most recent error:
C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/execjs-2.5.2/lib/execjs/runtimes.rb:48:in 'autodetect': Could not find a Javascript runtime. See https://github.com/rails/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)}
Other times I get errors with native gems follow guides to resolve those, but nothing ends up working.
How do I get Rails to do anything on my Windows machine? Should I just get a Linux vm?
I would recommend using a vm, I've used virtualbox in the past with ubuntu for rails development.
It's not impossible to get things to work in windows, but you'll probably thank yourself later if you move to the vm.
For the specific error you mention see this SO post which suggests adding therubyracer gem.
If you're getting a different error every time then providing an answer with the steps to get it running would be very hard so I'll stick to a general answer.
With persistence (which, don't get me wrong, you've already shown) you can get rails up and running on a Windows machine. You will spend longer getting native gems to work properly and you will have to search harder, and longer, for solutions to some problems.
I have run rails on both windows (admittedly a few years ago now) and on linux and I have found the latter to be much easier to develop on.
So, it's a trade off between the pain of running rails under windows and the pain of running some of your dev environment on a virtual machine. Only you can decide which is the least painful for you.
I haven't tried yet, but I would like to have a good information background before begin.
I must run a Rails application on a Windows server (I think 2008),I know that there is other better solutions, but the client has this server's type.
I think that the problem can be solved in one of these four manners (maybe more?):
Running Apache/Ngnix as a service
Running directly from the OS
Running as virtualization
Running on a different partition (e.g. installing for example Ubuntu)
I have read tons of post but without finding a good solution (for Rails 3 and Ruby 2 I have find anything).
Which solution you suggest me? Which one is more stable and performant?
Any documentation is appreciated.
For ruby on rails its better to run it on linux than windows , on windows you will face a lot of problems like when you going to install gems , best thing is to install a vmware on your windows machine , then run Ubuntu or any linux distro you like through vmware, also you can check this question to know more
I'm almost finished with the development of my first ruby on rails app. I am using windows for development. Now i want to deploy my app (most likely on iPage web hosting). the procedure described in Agile Web dev... appear to only work on MAC OS X (with passenger, etc) and didn't have much luck googling.
My questions are:
1- Is there a good and easy to follow tutorial/book/etc on how to set up local production server on windows (e.g. using apache and mysql (Possibly WAMP)) and porting it to a remote host?
2- can the book "Deploying Rails Applications: A Step-by-Step Guide" help me?
3- Would it worth the effort that i install VMware,Ubunto (or another Unix/Linux based OS) and do the production there?
Thank you!
I ran into a similar situation where we had to decide on Rails app deployment to a Windows server rather than to a Linux one. I did some research but never tried out anything since fortunately we decided to stick with a Linux server. I was not particularly happy with what I found but here it is in case it helps:
Deployment to Windows using Capistrano based gem
Articles on other deployment options to Windows
I've been developing my first rails application on my windows computer.
But now i have been setting up a debian server with nginx and passanger.
I've been using Github to keep track of my application and now i am wondering how i can get the Github version of my application to the debian server and put it in production mode?
Anybody that have a good guide about this or something?
Getting the code to your production server is just the tip of the iceberg. What if you want to rollback to the previous version? Or tag a specific version and deploy it? How will you deal with different versions of configuration files for your development vs. production scenarios?
That's why you need Capistrano. It lets you do all this (and more) from the command line of your development machine. Take a look at the "From the Beginning" chapter to get started.
You'll also need some basic knowledge of shell commands and SSH.
Also have a look at the Phusion Passenger docs to see what is needed on the server side.