GIT - Manual CLI commands on SSH
Can I SSH into my Sisense server and run GIT CLI commands?
Does the Sisense webserver appropriately handle changes to GIT appropriately even when the webserver didn't do those changes. (i.e. if a manual GIT command changes a dashboard, does the change appear in Sisense when I refresh? Or does it cause errors because the webserver's view of the dashboard no longer agrees with the GIT files?)
The particular use I'm after is:
- SSH/SCP: Paste files into /opt/sisense/storage/git
- SSH: git commit
- Sisense: Refresh dashboard
Do I need to turn off the webserver before running manual GIT commands, and then reboot?
Tim von Ahsen
Posted 2 years ago·Last reply 2 years ago
3 comments
DRay
·2 years agoOleksandr_K, Can you please follow up here?
Tim von Ahsen
OP2 years agoHi Oleksandr,
"the end flow you would like to achieve": Bulk import.
Details:
What do you recommend?
I tried copying files. Doing specific actions in a specific order made it work - I could open the dashboards. But if you say it's not supported, maybe I'll run into problems later.
Oleksandr_K
·2 years agoHi Tim,
We have not designed the feature to work this way; therefore, we do not support it.
Git, as a technology, is based on working with files, where CLI or GUI are just different interfaces for interacting with Git repositories. While executing Git commands directly via CLI might work in some cases, it lacks the additional logic and validation included in the Sisense Git projects UI. Moving files directly will most likely not work, as it generally relies on the oids of the assets and their sub-entities, which are generated by the application and stored in the database.
Kindly, let me know the end flow you would like to achieve that requires direct manipulation via SSH?