Skip to content

Commit

Permalink
deleting package-lock.json file during ansible installation
Browse files Browse the repository at this point in the history
  • Loading branch information
ashaban committed Jan 15, 2024
1 parent 22d71e4 commit ba5ce62
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packaging/ansible/centos/templates/gofr.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ After=network.target
[Service]
Type=simple
WorkingDirectory=/var/lib/gofr/gofr-backend
ExecStart={{node_path}} /var/lib/gofr/gofr-backend/{{site}}/bin/www
ExecStart={{node_path.stdout}} /var/lib/gofr/gofr-backend/{{site}}/bin/www
Restart=always
Environment=NODE_ENV=production

Expand Down
13 changes: 10 additions & 3 deletions packaging/ansible/ubuntu/README.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Install git
sudo apt install git
install ansible
sudo yum install epel-release
sudo yum install ansible
sudo apt install ansible
install ansible modules
ansible-galaxy collection install ansible.utils
sudo ansible-galaxy collection install ansible.utils
sudo ansible-galaxy collection install community.postgresql
Edit /etc/ansible/hosts and add 127.0.0.1
Clone gofr github repository
git clone https://github.com/intrahealth/gofr.git
Run the installer
cd gofr/packaging/ansible/ubuntu/
sudo bash run.sh
10 changes: 10 additions & 0 deletions packaging/ansible/ubuntu/gofr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@
src: /var/lib/gofr/gofr-gui/src/gofr-frontend-site/
dest: /var/lib/gofr/gofr-gui/src/site

- name: Remove package-lock.json from gofr-backend
ansible.builtin.file:
path: "/var/lib/gofr/gofr-backend/package-lock.json"
state: absent

- name: Remove package-lock.json from gofr-gui
ansible.builtin.file:
path: "/var/lib/gofr/gofr-gui/package-lock.json"
state: absent

- name: Installing npm packages into gofr-backend
shell: |
cd /var/lib/gofr/gofr-backend
Expand Down

0 comments on commit ba5ce62

Please sign in to comment.