vscode-devcontainer for rails v4.1.0 - ruby-on-rails-4

I'm working on reviving an old project written in rails v4.1.0 (and ruby v2.1.9) dev environment.
I would like to set up a vscode-devcontainer so future developers can start developing immediately regardless of their machine OS.
Currently, I'm unable to find a suitable base vscode-devcontainer. The min ruby version available is 2.6 which is too high for this project.

Related

Redmine version 3.0.3 to 4.0.3 upgrade

I'm currently on a task to upgrade from Redmine 3.0.3 to Redmine 4.0.3.
I have followed these steps from http://www.redmine.org/projects/redmine/wiki/redmineupgrade but the current system is running a version of Ruby that is not supported by Redmine 4.0.3. I have also tried to make a new server using Turnkey Redmine and then copied over the database and configuration file, but with no luck.
Has anyone done this before and if so is there an how-to guide somewhere?
This appears to be more of a general 'How to deploy a Rails application' question, not really Redmine specific.
In short, Chruby or the aforementioned Rvm are the answer to all your Ruby version problems. After installing a current version of Ruby, you will have to somehow configure your Ruby server (Unicorn or mod_rails or whatever you're using) to run with that version of Ruby. How to do that really depends on what you are running and, again, is not Redmine specific but specific to that server.

How to downgrade in Laravel Framework? (5.6 to 5.5)

I have a project which is done with Laravel 5.6. But My current server doesn't have php 7.1 installed yet. How is it possible to downgrade to Laravel 5.5?
I also down graded my project also, but then I was getting ton of errors. But most of them were about unfamiliar key words and unsupported packages. So, success depends on your project’s dependencies and also your effort.
Follow these steps.
Backup your project
Change the value of Laravel version inside the composer.json to Laravel 5.5
Delete vendor folder
Run composer install
** By then you will have to take care of any issues in your own code because there should be new functionalities in earlier versions which
is not used in older.
Or
Go to this page and do the instructions in reverse order

Is it possible to run Horizon server on Windows?

I'm using windows as my development machine. Recently we are developing some features on OpenStack Horizon. Which means we need to checkout horizon source code from github:
https://github.com/openstack/horizon
Then I tried to follow the document to start horizon Django service on Windows. But it failed. But on Linux(Ubuntu virtual machine) it works fine.
Does anyone ever been able to start Horizon Django server on windows?

Step by Step install of wso2 EMM for Ubuntu

I've visited the wso2 website and the install instructions are very disjointed in that there is a lot of jumping around between pages. I've seen the following blog that seemed to streamline the instructions but it doesn't seem complete (plus it's out of date with the version it's installing) - https://maxmalm.se/blog/2014-06-17-installing-wso2-enterprise-mobility-manager-110
Has anyone seen step-by-step instructions on what needs to be done to completely setup wso2-EMM on a newly installed Ubuntu 14.04 virtual machine with just the O/S on it and none of the pre-reqs installed yet? The blog I mentioned above seems to give a lot of the necessary apt-get install bits but doesn't mention anything about a database (yet the wso2 has a whole section on installing and using a database).
Thank you.
To try out WSO2 EMM you will only need to have JDK 7 or 8 [1] installed as minimum to start off the server. WSO2 products are build to run with OOB database which is H2. So to get things started and play around, I suggest that you install java and then start the pack to get things going.
[1] https://docs.wso2.com/display/EMM201/Installing+on+Linux+or+OS+X
To getting started all you need is JDK installed in your machine and setting the Java related environment variables like PATH, JAVA_HOME. You might have to install the correct version of JDK for the particular version of the EMM.

Openshift DIY cartridge with Jetty and JDK8

At the moment openshift has no official support of java 8.
There is only one working solution that I found: JDK 8 support for Wildfly 8.1 OpenShift cartridge
But wildfly is to heavy for my project, and a small (1Gb) gear is not enough for it. (I'm using a free plan)
So I'm trying to configure it on DIY manually using Jetty.
Maybe someone already managed to do it. If not I will share my results.
So the goal is to build (using maven) and deploy application using java 8 on openshift.
I did this.
So I can share this scripts.
Also I wrote a manual for it.
Hope this will help someone.
https://github.com/pkolmykov/jetty-openshift-java8