Answer the question
In order to leave comments, you need to log in
Rails 3.0.9 ruby ​​1.9.3 server auto-update
Hello habravchane and especially rubists!
I am the unfortunate owner of a project on rails under Windows
Let's be serious and let's not minus my karma just because I use ruby ​​for other purposes (but under Windows).
In fact, everything was not bad, until at the next stage of development we were asked for auto-updates.
Moreover, their server is behind NAT and cannot be reached from the outside, moreover, it does not always have the Internet.
What are the solutions for rails that suit my situation
Scenario something like this
Apply a patch of files (you can just copy and paste)
rake db:migrate
Kill the ruby ​​and rubyw processes
Restart the ruby ​​related service
So far I haven't found a single solution.
1. If there are ready-made solutions, please tell me
2. In a hypothetical world, if your boss gave you such a task, how would you implement it?
3. Thank you!
Answer the question
In order to leave comments, you need to log in
I don’t know about ready-made solutions, but you can do this. If the Internet still appears periodically, then organize using git: do git pull and set up a hook in the form of a cmd file that will FIRST STOP the server, do migrate, and then run. Moreover, it is possible (not very sure) to make the rails server in the form of a windows service, then it will be easy to stop the launch.
If I had been given such a task, I think I would have done it. Although in my purely hypothetical world, the boss does not engage in pornography))).
I would put a virtual machine from debian / ubuntu on windows;)
It looks like it's already 3 or 4 days
You
can port github.com/sstephenson/ruby-build/tree/master/share/ruby-build to power shell and build manually
where do you get ruby ​​from?
The agony that was meant there was for deployment, it was over a year ago, and now they wanted auto-update.
rubyinstaller1.9.3
1. Don't you think that auto-update at one fine moment can kill your project completely (before manual intervention)
2. Even in Windows there is a scheduler that can do gem update rails, kill (or whatever it is in Windows), start. As for ruby, they said above. Download if the version is new and silent install. (through the same scheduler).
3. Do it all by hand, not automatically.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question