Skip to content

Commit

Permalink
Fix auto-deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
jkilpatr committed Nov 16, 2024
1 parent 9c7dcfd commit 665a2f2
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion althea-info-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const SSL: bool = !DEVELOPMENT;
const DOMAIN: &str = if cfg!(test) || DEVELOPMENT {
"localhost"
} else {
"info.althea.link"
"info.althea.zone"
};
/// The backend RPC port for the info server fucntions implemented in this repo
const INFO_SERVER_PORT: u16 = 9000;
Expand Down
2 changes: 1 addition & 1 deletion scripts/hosts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[gravity_info_server]
info.gravitychain.io
info.althea.zone
3 changes: 2 additions & 1 deletion scripts/roles/install-deps/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
apt:
name: "{{debian_deps}}"
state: present
update_cache: true
when: ansible_distribution == 'Debian'
become: true

- name: Install Ubuntu deps
apt:
name: "{{ubuntu_deps}}"
state: present
update_cache: true
when: ansible_distribution == 'Ubuntu'
become: true

Expand All @@ -28,7 +30,6 @@
state: present
when: ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux'
become: true
ignore_errors: yes

- name: Install Archlinux Deps
pacman:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This is a systemd service for the Gravity Bridge info server baackend
# This is a systemd service for the althea info server baackend
[Unit]
Description="Gravity Info Server"
Description="Althea Info Server"

[Service]
Type=simple
Expand All @@ -9,7 +9,7 @@ LimitNOFILE=65536
Restart=always
Environment="RUST_LOG=INFO"
Environment="RUST_BACKTRACE=FULL"
ExecStart=/usr/bin/gravity-info-server
ExecStart=/usr/bin/althea-info-server

[Install]
WantedBy=default.target
4 changes: 2 additions & 2 deletions scripts/roles/setup-nginx/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
domain: "info.gravitychain.io"
host_dir: "gravity-info-dash"
domain: "info.althea.zone"
host_dir: "althea-info-dash"
2 changes: 1 addition & 1 deletion scripts/roles/setup-nginx/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
- name: Copy Gravity Info site
- name: Copy Althea Info site
synchronize:
src: "{{playbook_dir}}/{{host_dir}}/"
dest: /usr/share/nginx/{{host_dir}}/
Expand Down

0 comments on commit 665a2f2

Please sign in to comment.