Skip to content

Instantly share code, notes, and snippets.

@shimondoodkin
Created July 23, 2010 04:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shimondoodkin/487001 to your computer and use it in GitHub Desktop.
Save shimondoodkin/487001 to your computer and use it in GitHub Desktop.
the blog is in comments below
@shimondoodkin
Copy link
Author

i have found that my program js program takes time to load,
i am now thinking of implementing different version with wait don't exit until loaded, then exit just before the server.listen() call with http://wiki.github.com/rvoicilas/inotify-tools/ or node itself, probably i will go with inotify-tools becose it is more system like with less layers of application calling application

@shimondoodkin
Copy link
Author

a good point about development might be that development is different from deployment
deployment might need something else.
and development might need something else.
don't know what yet

@shimondoodkin
Copy link
Author

idea: one click contribute - anyone wants to write it?
it is would be nice to have a small exe file called codeback.exe with a ( codeback.ini ) config file how to treat privet information that differs from the open source program.- waht to auto delete or mark out, and also it will contain list of crc of files(probably it is better to have codeback-crc-[version].ini so latest download contain the last version).
also it will contain a comming readme.txt that will explain that codeback.exe is a gui app that before sending anything it will show you the files it will send back as a contribution to the open source maintainer to check.

on load it will have a button - check changes.
it will mark all the files that are different from the chosen version of crc check,
then it will mark out privet information like database names, usernames , passwords , domains and names, project names

give a list of files with check boxes , some files will be marked as striped from privet information,
clicking on the file will show the file on the right in a text box, above that text box will be a push button to show a original version with sent version changes highlighted
also there will be a check box show all files.
the file check will be as a recursive file list.
after the user singes a contribution agreement, chooses his repository a name (only once)+your full name, it is written to ini file,
then it adds file crc version checked against, plus all modified files into a zip/tar.gzip archive and upload it.
on server it forks a repository or a branch by his name from a repository by the crcd against version, adds the changes. and creates a ask to review ticket.

all this should be done easily (first time and by 4-5 clicks, and second time by two clicks - one click open exe, one click contribute button)
so it will be a one click contribute software.

the exe is portable with little requirements, not depended on local installation of anything. the git operations done on the managing server.

also it is possible to create a shell script version of this app execute on linux.

@shimondoodkin
Copy link
Author

idea: create one click node development and deployment script
one full for Ubuntu desktop
and one partial for Ubuntu server
install eclipse with pde,pdt,plugin cvs + google chrome dev v8 javascript debugger
install node
install nginx
install haproxy
all preconfigured
with first steps walkthru

@shimondoodkin
Copy link
Author

if you run 2 or more apps on same database
and you do actions one might execute other app's data.
also on timed actions(when debuggining you might be confused),
so add in database a column of app hostname
and in code match by path whitch app it, add it as hostname to the a varibale in the app while loading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment