Codea-SCM: basic source control for your projects

@juce Wow, thank you once again for creating this, and for open sourcing it, this is incredible. It’s going to take me a while to get round to it, but at some point I’d like to experiment with local hosting, I’m sure I’ll have a few questions for you at that point.

This is probably an incredibly stupid question, but would it be possible to use this in an entirely local network (ie with no connection to the web), eg iPad → local Codea-SCM server → local Git repository. Or does it always have to go via the web service (BitBucket, GitHub etc)?

@yojimbo2000, not a stupid question at all, but a valid one. And yes, you can do it like that, of course, but you’d have to set up your own git server with SSH access configured. Nothing too complicated about that, but yeah than it’s up to you to back things up, and such.

That’s really cool and very useful. Thanks so much for sharing that!

fabulous?although i dont know how to use

juce - been playing with it a bit, really cool. Pushes codea to the next level for me. Just one question - where is the actual project stored? My git push only uploaded the .lua files, but there is no file that reflects the project properties, as well as the imports.

@joelhoro, yes, currently it only handles the code tabs. I can also make it push/pull the project data and project info. That’s a good idea.

By imports - do you mean dependencies on other projects? That’s not supported at the moment, and i’m not sure if it’s possible… Also, assets are not handled either. Something to look into, perhaps.

Yeah imports, I meant dependencies. I would have thought that this is part of the project info.

Try this

http://codea.io/talk/discussion/4470/modifying-info-plist

Ah - just noticed a small bug which probably doesn’t often happen.

I lost most of the tabs of my projects while playing with Aircode, so I was really happy to be able to pull from github :wink:

Now the bug is that, because the repo does not have info about tab order, when I pulled, it put the tabs in a random order.

@joelhoro, thanks for reporting the tab-order issue. I’ve fixed that now.

The new version - v1.2 - is available now. What’s new:

  • Info.plist is now source-controlled too - to ensure correct tab order (thanks to @Ignatz for relevant topic link)

  • Better UI for linking projects to git remotes (thanks to @joelhoro for the idea and the patch)

  • Scrollable project panel.

@juce that’s awesome, looking forward to trying that! Is it the same installation process as you described above? http://codea.io/talk/discussion/comment/58100/#Comment_58100

@yojimbo2000, yes indeed

Well I would opt for upgrading codea-scm simply by pulling the latest version from bitbucket :wink:

Is it ok to let a source code controller control its own source code?

@juce Very cool project, the lack of git in app has always bugged me. Have you open sourced the server side?

Yes it is open sourced, see this earlier post:

http://codea.io/talk/discussion/comment/58427/#Comment_58427

@yojimbo2000 - ideally I should have 2 codea-scm projects, one that I work on, and a copy of the official version that I use to manage code of all projects. The only issue is that it’s not possible to share local data across projects, and I was too lazy to link all my projects inside the official version so I am using the dev one.

If I break my dev version to the point it becomes unusable, I can always download the official version and diagnose/revert my dev version from there as needed :wink:

@yojimbo2000, yep, it’s ok to have codea-scm to source control itself. I’ve been doing that since the early versions of it. You can pull the latest from master, or a specific tag (For example, the installer currently uses v1.2 tag)

@Briarfox, thanks. Both the server side and the client-side are publicly available:

https://bitbucket.org/juce/codea-scm

https://bitbucket.org/juce/codea-scm-app

( The server side might be a bit tricky to set up locally, but it’s not too bad. I’m happy to help with that if needed )

@juce thanks for the links, I looked for it on github, didn’t think about bitbucket.

Might I suggest a Repo to track all projects? There is a nice setup that the pythonista guys use. https://github.com/Pythonista-Tools/Pythonista-Tools. Simple markdown pages with links, using ticket submits to add projects.

I’ve started one up here: https://github.com/CodeaProjects/CodeaProjects If I can get some user names I’ll add other admins.