Make sure no more experiments are running under this URL. You can use the
DELETE button in the experiments CI
pipeline.
Invite experimenter to GitLab Project. And tell them their URL.
New Experiment Setup for Experimenter
This setup can be also found in the README of the oGardener in the oForest
project.
Clone the oGardener and create a new project in the oForest group. Add this
new repo as origin. To do this, make sure you have Git installed and run:
# rename folder for your projectgitmv oGardener YOUR_PROJECT_NAME
# rename old origin to oGardenergit remote rename origin oGardener
# add your project urlgit remote add origin YOUR_PROJECT_URL
Move your experiment code to oTree folder. Also make sure to include all
dependencies in your requirements.txt or Pipenv & Pipenv.lock. If you
have missing dependencies, your project won’t run.
Make sure to leave .resetdb.sh in the oTree folder untouched. It is a
hidden file, if you don’t see it, don’t worry about it.
Change ingress URL according to your assigned project URL. For this, add an
environment variable to your GitLab project. Name it EXPERIMENT_URL it should
look something like this: experiment01.k2lab.iism.kit.edu
Add MASTER_PWD as a CI/CD variable and choose a good password. It should be
masked and not protected.
If necessary, adjust the Python version in the Dockerfile to match the
oTree version you’re using.
Stage, commit and push your changes. Make sure you push to origin not to
oGardener. You can watch the pipeline running in GitLab, wait for it to be
finished.
Now manually deploy to Production. Here you can also reset your database or
delete the whole deployment.