diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8461d99ead12fc0e6f9c03c4243c4cc3e463c290..9be0ea695c8e8e9731e41924a8e2a65f944f54f1 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -71,12 +71,22 @@ django-tests:
   stage: test
   script:
     # The MYSQL user only gets permissions for MYSQL_DB, so Django can't create a test database.
-    - echo "GRANT ALL on *.* to '${MYSQL_USER}';"| mysql -u root --password="${MYSQL_ROOT_PASSWORD}" -h mysql
+    # - echo "GRANT ALL on *.* to '${MYSQL_USER}';"| mysql -u root --password="${MYSQL_ROOT_PASSWORD}" -h mysql
+    # line diatas bikin test failed
     # use python3 explicitly. see https://wiki.ubuntu.com/Python/3
     - python3 manage.py test
 
-deploy:
-  stage: deploy
-  script: echo "Define your deployment script!"
-  environment: production
+stages:
+  - deploy
 
+deploy-railway:
+  stage: deploy
+  image: ubuntu
+  only:
+    - master
+  script:
+    - apt-get clean
+    - apt-get -o Acquire::ForceIPv4=true update
+    - apt-get install -y curl
+    - curl -fsSL https://railway.app/install.sh | sh
+    - railway up --service=$RAILWAY_SERVICE_NAME -d
diff --git a/project_a4_logistik/settings.py b/project_a4_logistik/settings.py
index 9887195e378f71fb472cdc6f225e85fc5ef719f4..250d37fbd1149ce29649a466632a74a60222f1d8 100644
--- a/project_a4_logistik/settings.py
+++ b/project_a4_logistik/settings.py
@@ -25,7 +25,10 @@ SECRET_KEY = 'django-insecure-de*63$hz+#$#*@#@ke6n^@1yvtysnf^z$-=2oqd6x0knr96)@@
 # SECURITY WARNING: don't run with debug turned on in production!
 DEBUG = True
 
-ALLOWED_HOSTS = []
+ALLOWED_HOSTS = [
+    'aquatic-metal-production.up.railway.app',
+    # Add any other allowed hosts here if needed
+]
 
 
 # Application definition