mampf icon indicating copy to clipboard operation
mampf copied to clipboard

Better separate environments

Open Splines opened this issue 7 months ago • 1 comments

There are many different environments that we have to wrap our head around. I get frequently confused about some things, so I'd like to propose some changes to our setup.

On the server

We currently have one Rails environment called production run inside three different server environments:

  • https://mampf-experimental.mathi.uni-heidelberg.de/
  • https://mampf-dev.mathi.uni-heidelberg.de/
  • https://mampf.mathi.uni-heidelberg.de/

I'd like to reserve the name dev or development for anything happening locally on my machine and not on some server. It feels weird to see that the dev server environment runs in the production Rails environment. Therefore, I propose this change:

# URL rename (also rename the respective folders on the servers)
https://mampf-dev.mathi.uni-heidelberg.de/ --> https://mampf-next.mathi.uni-heidelberg.de/

# Branch rename
dev --> next

The name experimental is quite clear to me, so let's stick to that.

Locally on the dev's machine

On the dev machine, long time ago, we had a development Ruby environment that got superseded by the docker_development Ruby environment. As we have stuck to Docker for many years now and don't care about the development Ruby env anymore, I propose to only use the docker_development Ruby env and ditch the development Ruby env. I propose this change:

# Ruby env delete
delete development

# Ruby env rename
docker_development --> development

Within the scope of this issue, I also propose to scrutinize the test Rails env. In the past, there were already some efforts to make it resemble the local dev env more closely. Maybe we don't even need a separate tes Rails environment. But if we do, we should know exactly where they really differ. If they do, we could also let both of them inherit some common configuration and then only specify the differences.

Splines avatar May 02 '25 17:05 Splines

@fosterfarrell9 What do you think about this proposal?

Splines avatar May 09 '25 22:05 Splines

We renamed the dev branch to next today and also changed the domain name to mampf-next. The word "dev" now always refers to local development, not something on our servers.

Not closing this issue yet since there are other points that I haven't tackled yet, e.g. development vs. docker_development.

Splines avatar May 23 '25 21:05 Splines