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 0604b38
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/automated-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v2
with:
workspaces: "gravity-info-server/"
workspaces: "althea-info-server/"
- uses: jpribyl/[email protected]
- uses: actions/setup-python@v2
with:
Expand All @@ -32,6 +32,6 @@ jobs:
echo "$SSH_KEY" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
- name: Prep node environments
run: cd gravity-info-dash; yarn;
run: cd althea-info-dash; yarn;
- name: Build and deploy
run: bash scripts/build-and-deploy.sh
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 0604b38

Please sign in to comment.