Best workflow practices for editing Mango dashboards?
-
Curious if there is a solution to make editing my dashboard files easier.
Mango is installed on a Centos based server without a GUI interface. I only have SSH access to the server and using NANO is painful when trying to edit the files.
My main PC is Windows 10 based and I was wondering if there is a better way to edit the files on the server over the SSH connection or some other way I can install something on the server and access from the main PC?
-
Found my own solution. UltraEdit has an FTP connection and using this I can edit the files on my PC and then save them back to the server.
-
Glad you found a solution Dave! I can't imagine having to develop in nano all day.
Another good option for Windows is Notepad++. If you already have a favorite editor but it doesn't support SFTP then you can use FileZilla for transferring. FileZilla can be setup so that when you change a file mirrored on your local machine it will automatically prompt you to transfer it up to the server.
On Macs my favorite is the Coda2 app.
There are lots of solutions out there. Any editor that supports SFTP will do the trick.
-
I use SFTP with cyberduck and it works pretty great. Just set up cyberduck to edit a file when you double click it rather than download. When I save the file in my code editor (atom is great btw) it automatically uploads, doesn't prompt for overwriting but I can always undo and save again if the file is still open.
I recommend this method in combination with using a git repo stored locally that you then copy your files from the server down into the git repo. After a day of coding or some relevant changes that I want to bookmark I commit to git. The benefit of doing this is you can get the revisions and track your dev progress, things you won't get if you are just editing files directly on the server as described above.
Another method I have used recently is to set up a local dev environment that is a clone of the live machine, develop locally, and upload to the server to preview live/show to client. The benefit is you get much faster hard refreshes as the page is loading locally. Also if your internet connection is intermittent or you want to work on a subway/plane etc.
There is also some cool tricks you can do with symlinking a git repo into a local mango install that I need to do a tutorial on.
-
We will be adding the ability to edit dashboard files directly from the web interface in an upcoming release, and an interface to edit menu items. Stay tuned.
-
UltraEdit gives you a nice file explorer on the left and that makes navigation and selection easy. You just hit save and then it updates the file on the server. Have managed to get this all working nicely and editing the webpage has been a lot more enjoyable now.