It has been a headache to deploy mono for a long time because I am not familiar with the non-win environment. Today I accidentally discovered this project, which is quite good.
Https://github.com/wshearn/openshift-community-cartridge-mono
Http://test.unknownerror.org/This is my address
Deploy mono OpenShift in OpenShift to provide free servers, you can go here to see https://www.openshift.com/products/pricing
In fact, the first and second are almost free, and the second is more like add-in on-demand charging, and the Community provides support.
Registered address: https://www.openshift.com/app/account/new
So how to deploy the mono runtime environment in OpenShift? Most linux cloud does not support. NET by default.
However, OpenShift has an open app creation method.
Click and scroll to the bottom of the page
Enter the address mentioned in the project here
Https://raw.github.com/wshearn/openshift-community-cartridge-mono/master/metadata/manifest.yml
Enter the name of the application to be created.
Click at the bottom of the page.
In this way, your mono application is created.
How to access it?
So how to upload code,
Only git + ssh can be used here
I used to be unfamiliar with ssh. I got stuck here for a long time.
Finally, though the method is stupid, it is also a method for connecting to the client using github.
Https://windows.github.com/
Download
Then
See here for http://teliute.org/mix/Tegit/lesson2/lesson2.html
Open git shell
1. Create an SSH key
1) Open the terminal, enter the command ssh-keygen-t rsa-C "teliute@163.com" and then press the Enter key, double quotation marks in the mailbox into your own;
We recommend that you write your login email here.
I think I can fill it out, but I have never tried it.
. Check whether the ssh key is available: cd ~ /. Ssh
The location of the key can be found.
Put B is the Public Key generated just now. Get it to OpenShift.
Click Add
In this way, you can use git to get the code.
Here is the address for getting code.
How to Use git to get code
First initialize git environment git init
Then git clone your git address.
====================
Common Errors
If this error occurs during operations on the site
We appear to be having technical difficulties
An error occurred
|
OpenShift Online by Red Hat is okay to cancel the wall flip. Basically, you can do it ========================== = after obtaining the source code, you can use vs for development or monodevelop for development. We recommend that you run monodevelop before uploading the code. NET and some dll in mono are different. For example, the dll linked to mysql should be set to the dll under mono 2 add bin during runtime of two points. (First, delete the dll reference) the dll to be added is under the bin directory. I am also the first time to successfully deploy and explore the experience. There are still many shortcomings that can be cherished