diff --git a/provision_server.sh b/provision_server.sh index 540f3a16..1bf626bf 100644 --- a/provision_server.sh +++ b/provision_server.sh @@ -5,17 +5,15 @@ ######## VERSION INFORMATION ######## postgres_version=12 -node_version=12 +node_version=14 ruby_version=2.7.0 -rails_version=5.2.4.1 +rails_version=5.2.4.3 geckodriver_version=0.26.0 ########## INSTALL SCRIPT ########### # codeocean user sudo adduser codeocean -usermod -a -G rvm codeocean -usermod -a -G docker codeocean # PostgreSQL wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - @@ -41,11 +39,13 @@ curl -fsSL https://nginx.org/keys/nginx_signing.key | sudo apt-key add - # Install packages apt-get -qq update -apt-get -qq -y install postgresql-client postgresql-$postgres_version postgresql-server-dev-$postgres_version yarn nodejs nginx +apt-get -qq -y install postgresql-client postgresql-$postgres_version postgresql-server-dev-$postgres_version +apt-get -qq -y install yarn nodejs nginx libpq-dev # RVM gpg --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB curl -sSL https://get.rvm.io | bash -s stable +usermod -a -G rvm codeocean tee -a /etc/systemd/system/docker.service.d/override.conf < + + + + +

Maintenance! Wartungsarbeiten!

+

CodeOcean is temporarily unavailable and will be back soon! We're aware of this issue and you do not need to take further steps (ask a question in the course forum or create a helpdesk ticket). Please check back in about five minutes. Your last progress has been saved and will be available once you return.


+

CodeOcean ist derzeit nicht verfügbar und wird in Kürze wieder erreichbar sein. Wir wissen von der Nichtverfügbarkeit, sodass keine weiteren Schritte (wie eine Frage im Forum zu posten oder ein Helpdesk-Ticket zu erstellen) nötig sind. Bitte versuchen Sie in ungefähr fünf Minunten erneut, die Lernplattform aus dem Kurs heraus zu öffnen. Ihr Bearbeitungsstand wurde gespeichert und wird Ihnen beim Fortsetzen der Aufgabe wieder zur Verfügung stehen.


+

Kind regards, Viele Grüße

+

Teaching Team

+ + +EOF + + +mkdir /var/www +chown -R www-data:codeocean /var/www +chmod -R 775 /var/www + +certbot certonly --webroot -w /var/www/acme-challenges/ --email email@example.org --rsa-key-size 4096 --agree-tos -d codeocean.openhpi.de +systemctl daemon-reload + # Deploy via Capistrano (both, CodeOcean and DockerContainerPool) and symlink Docker files: # ln -s /var/www/app/current/tmp/files/staging /var/www/dockercontainerpool/current/tmp/files/staging + +# Find more files in codeocean-deploy/config/backup \ No newline at end of file