The development->deployment process is something I would like to overhaul, so I would really love it for users to let me know how they would like to work. The way it currently functions is that you have 3 ways to modify code in the cloud and two ways to add new files to the cloud
1) Upload a zip will overwrite all of you code and replace with the contents of the zip. This is the only way to add a directory
2) Upload an individual file. This will overwrite an existing file with the same name or add the file if it is new.
3) Edit an existing file in the code editor.
When I developing a service I usually create my structure offline and then do my first upload through a zip file. For additional changes I make them offline in my editor and then either copy and paste into the cloud code editor or upload the file. I don't like this workflow.
Some of the options I've been thinking about include:
1) git push
From my local machine issue a command like git push moai <branch>. This would take my local code tree and upload everything to the cloud.
2) github pull
From the dashboard pull any branch from github into my cloud service
3) sshfs
Allow me to mount my cloud services code so I can edit locally via my ide but save changes to the cloud immediatly.
You can get yourself in trouble by mixing these methods since you have multiple mastes. i.e. if you edit the file in the cloud and locally you will have a hard time merging. We've also been thinking about automatic versioning and rollback in the cloud so each time you save a file we'll keep that history and allow you to revert.
If ay one has thoughts or feedback leave them here or on (preferably) our feedback page:
https://moaicloud.uservoice.com/forums/137991-features