Skip to content

Commit e0b3b1e

Browse files
author
Adam Dupaski
committed
Merge branch 'development'
2 parents a93c6ce + c5c2327 commit e0b3b1e

File tree

5 files changed

+82
-4
lines changed

5 files changed

+82
-4
lines changed

developerportal/general/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ space: "Developer Portal"
55

66
## Documents in This Category
77

8-
* [Leave App Types](leave-app)
8+
* [Leave App Scenarios](leave-app)
99
* [Mendix Profile](mendixprofile)

developerportal/general/leave-app.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "Leave App Types"
2+
title: "Three Ways to Leave Your App"
33
space: "Developer Portal"
44
category: "General"
55
---

howto/collaboration-project-management/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ space: "Mendix 7 How-To's"
99
* [How to Share the Development Database](sharing-the-development-database)
1010
* [How to Start Your Own Repository](starting-your-own-repository)
1111
* [How to Translate Your App Content](translate-your-app-content)
12-
* [How to Use Team Server and Version Control](using-team-server-_-version-control)
12+
* [How to Use Team Server and Version Control](using-team-server-_-version-control)
13+
* [How to Work with an On-Premises Version Control Server](on-premises-svn-howto)
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
---
2+
title: "Work with an on-premises version control server"
3+
space: "Mendix 7 How-To's"
4+
category: "Collaboration & Project Management"
5+
tags: ["on-premises"]
6+
---
7+
8+
## 1 Introduction
9+
10+
When developing Mendix applications, changes to these applications are stored in a version control system. This system is called Team Server and is part of the Mendix platform. This means that the application's files are stored in the Mendix online environment.
11+
12+
While this is the recommended way of working for almost all Mendix developers, you may prefer to store your application's files in a system that is controlled by your own organization.
13+
14+
**This how-to will teach you how to do the following:**
15+
16+
* Configure your Mendix projects to work with your own (on-premises) version control system
17+
18+
## 2 Prerequisites
19+
20+
Before starting this how-to, make sure you have completed the following prerequisites:
21+
22+
* Have knowledge of Subversion
23+
* Have have access to an SVN server (for details, see [3 On-Premises Version Control Server](#3))
24+
25+
## 3 On-Premises Version Control Server<a name="3"></a>
26+
27+
For version control, the Mendix Modeler uses the [Subversion](https://subversion.apache.org) system (also known as SVN). This how-to will not describe how to set up an SVN server from scratch; typically, this will be taken care of by the IT department of your organization.
28+
29+
This how-to assumes that you have an SVN server at your disposal as well as the following:
30+
31+
* You know the location of the SVN server – usually this is an address similar to an internet URL (for example, `https://svn.example.com:9876/repos/myapp`)
32+
* You possess credentials (username and password) that give you access to the SVN server
33+
34+
## 4 Repositories
35+
36+
Subversion uses repositories for storing all the data of your version-controlled project. Each Subversion server can contain many different repositories.
37+
38+
For the purposes of this how-to, there are two important points to know about repositories.
39+
40+
The first point is that Mendix requires you to store each Mendix application in a separate repository. It's not possible to share a single repository with different Mendix applications.
41+
42+
The second point is that, when uploading a project to a repository, the Mendix Modeler requires this repository to be empty (except for the recommended SVN layout as described in [Recommended Repository Layout](http://svnbook.red-bean.com/en/1.7/svn.tour.importing.html#svn.tour.importing.layout) in *Version Control with Subversion*). Specifically, this means that the repository should contain only three empty folders, called **branches**, **tags**, and **trunk**.
43+
44+
Usually, repositories are created and maintained by the administrator of your SVN server. For more details about repositories, see [Repository Administration](http://svnbook.red-bean.com/en/1.7/svn-book.html#svn.reposadmin) in *Version Control with Subversion*.
45+
46+
In the following sections of this how-to, it is assumed that you have a repository available for your application.
47+
48+
## 5 SVN Versions
49+
50+
The Mendix Modeler has a (built-in) Subversion client that uses version 1.7 of the SVN working copy format. This client should be compatible with any 1.x version of the SVN server, so you could use, for example, a 1.6.x or 1.9.x SVN server as well.
51+
52+
<div class="alert alert-info">{% markdown %}
53+
54+
SVN clients newer than 1.7 use an updated working copy format, which means that when you use a separate SVN client (for example [TortoiseSVN](https://tortoisesvn.net/)) to work on your Mendix project, you cannot use a 1.8.x or 1.9.x (or newer) version of this client. That is because it would upgrade your working copy, and then the Mendix Modeler would not be able read it anymore.
55+
56+
{% endmarkdown %}</div>
57+
58+
## 6 Creating a New Application
59+
60+
Currently, there's no direct way of creating and storing a new application in your on-premises SVN server. Instead, to create a new app, please follow these steps:
61+
62+
1. Create a new Mendix application from either the [Mendix Portal](https://sprintr.home.mendix.com/index.html) or the Mendix Desktop Modeler.<br>
63+
* If you create the app from the Mendix Portal, open it in the Mendix Desktop Modeler to download it to your local machine (for more information, see [Syncing the Web Modeler with the Desktop Modeler](/refguide/desktop-webmodeler)<br>
64+
* If you create the app from the Desktop Modeler, click **Yes** when asked whether you want to enable the Team Server
65+
2. The new project now contains a link to the location of the Mendix Team Server. To replace this with the address of your own SVN server, please create a ticket in the [Mendix Support Portal](https://support.mendix.com/hc/en-us) specifying your project and the address of your SVN server. This address must include the name of the repository you're going to use for your app (for example, `https://svn.example.com:9876/repos/myapp`).
66+
3. Please wait for confirmation from Mendix before continuing the process.
67+
4. Close all the running Mendix Modelers.
68+
5. Open the folder in which your project is stored.
69+
6. Delete the *.svn* and *.mendix-cache* folders (note that these folders may be hidden, in which case you'll need to enable the option in your file explorer to make them visible). By deleting these folders, any references to the Mendix Team Server are removed. Now, your app is ready to be uploaded to your own SVN server.
70+
7. Double-click the .*mpr* file in the same folder to open the project again in the Mendix Desktop Modeler. For example, if your app is called **MyApp**, this file will have the name **MyApp.mpr**. Alternatively, you can start the Desktop Modeler, click **My Apps** > **Open App**, and browse to the abovementioned *.mpr* file to open your project.
71+
7. When the project is opened in the Desktop Modeler, select **Team** > **Upload to Team Server...** in the top menu.
72+
8. In the dialog box that appears, select **Existing repository** and the name of your project (for example, **MyApp**), and then press 'OK'. The app should now upload to your on-premises SVN server.
73+
74+
## 7 Related Content
75+
76+
* [How to Use Team Server and Version Control](using-team-server-_-version-control)
77+
* [Team Server Reference Guide](/refguide/team-server)

releasenotes/platform-portal/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ toc-level: "1"
99
### Improvements
1010

1111
* For all apps running on the Mendix Cloud, the following HTTP headers are now available: `X-SSL-Version` (possible values: `TLSv1`, `TLSv1.1`, `TLSv1.2`) and `X-SSL-Cipher` (for example, `ECDHE-RSA-AES256-GCM-SHA384`). These can be used to block login attempts (for example, `TLSv1.0` connections).
12-
* Modern browsers are aggressively caching static HTML resources, which can lead to user problems after deploying new versions of applications. Clearing the cache can solve this, but that is a bad user experience. So, for all apps running on Mendix Cloud v3, we have added an explicit `no-cache` header to the resources `/` and `/index.html`, `/login.html`, and `/index[0-9]+.html`. For Mendix Cloud v4, an `expires` with a negative value was already used, so no changes are required there. We believe this change eliminates most of the browser caching issues we have seen so far.
12+
* Modern browsers are aggressively caching static HTML resources, which can lead to user problems after deploying new versions of applications. Clearing the cache can solve this, but that is a bad user experience. So, for all apps running on Mendix Cloud v3, we have added an explicit `no-cache` header to the resources `/` and `/index.html`, `/login.html`, and `/index[0-9].html`. For Mendix Cloud v4, an `expires` with a negative value was already used, so no changes are required there. We believe this change eliminates most of the browser caching issues we have seen so far.
1313
* You can now restrict access to your Mendix Cloud v4 applications based on IP ranges. This is available for all Mendix Cloud v4 regions and can be configured from the **Network** tab of your cloud environment.
1414

1515
### Fixes

0 commit comments

Comments
 (0)