Commit 2725ce0c authored by Andre Blanke's avatar Andre Blanke
Browse files

Actually start the Spring backend in shortener.service

parent 77c36482
......@@ -2,4 +2,4 @@
Description=upbshrt.xyz backend
[Service]
ExecStart=/usr/bin/test
ExecStart=/usr/bin/java -jar /var/run/shortener/shortener.jar
......@@ -33,23 +33,6 @@
become_user: aur_builder
aur: name=yay-bin use=makepkg state=present
- name: Install npm
package:
name: npm
state: present
- name: Install Angular
npm:
name: "@angular/cli@11.1.2"
global: yes
state: present
- name: Build frontend
shell:
chdir: /vagrant/frontend/
cmd: ng build
- name: Copy frontend to webroot
shell:
cmd: cp -r /vagrant/frontend/dist/frontend/. /srv/http/
- name: Install CockroachDB
become_user: aur_builder
aur:
......@@ -88,7 +71,7 @@
- name: Copy JAR file to /var/run/shortener/
copy:
src: /vagrant/shortener/target/shortener-1.0.0.jar
dest: /var/run/shortener/shortener-1.0.0.jar
dest: /var/run/shortener/shortener.jar
- name: Copy shortener.service unit file to /etc/systemd/system/
copy:
src: /vagrant/ansible/roles/worker/files/systemd/system/shortener.service
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment