Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import from github #528

Closed
VitaliyAT opened this issue Aug 7, 2016 · 5 comments
Closed

Import from github #528

VitaliyAT opened this issue Aug 7, 2016 · 5 comments

Comments

@VitaliyAT
Copy link

When I do import project from github it download all to folder '/projectName/', but not like I need in '/'. On Cloud9 it work as I want - clone it to '/'. If I do it manually in terminal I get my folders in '/' + '/.git', but without any files, plus git menu work (active) only under '.git' folder.

@TylerJewell
Copy link
Contributor

You can clone manually in the terminal into the / directory. But Che and Codenvy has a special construct called a project with type. When a repo is imported it is transformed into a project with its own directory. The typing then imbues the project with special behaviors and the ide even changes its contents and plugins as a result.

You can change the location of where projects are managed using Che properties. The default is /projects.

@VitaliyAT
Copy link
Author

VitaliyAT commented Aug 7, 2016

what if part of command prefer Atom/Sublime/Brackets/WebShtorm and "offline", others fall in love to Cloud9, and some want jump on codenvy or eclipse che ? As I can understand codenvy it's fork of last one. Anyway in all other platforms it work from root, but here from folder - what I will have in repo? is this architecture in codenvy support back push in the same positions as it was pulled?

@TylerJewell
Copy link
Contributor

The other products do not let you define your own dockerfile, which you can do with Che. and that lets you define a working directory which will be the root of installed software along with the location where projects are stored.

The directory is important as this more closely resembles the architecture of classic IDEs like Eclipse, Visual Studio, or Intellij. Those products define a workspace and project location.

Keep in mind that Che and Codenvy takes the projects and rsyncs them to long term storage. So there has to be a targeted location for the projects for this replication.

You could change the Che property from /projects to /, though it hasn't been tested for any side affects.

But the rationale is not clear. A good project structure should allow for operation in any directory for any clone.

@VitaliyAT
Copy link
Author

Could you suggest some article or video with those best practice of project architecture described? I understand that it's not the theme of github issue, but it give more Codenvy understanding, on what principles it based, with what ideas it made. Thank you.

@gazarenkov
Copy link

Codenvy/Che works as following:

  • it contains single workspace directory as a root of projects. By default it is configured to /projects, it can be changed with property
  • all the top level directories (like /projects/dir) are interpreted as "projects".
  • In case if there are no project config information for it - such a directory is considered as not-configured (blank) project. And files are not expected here (just ignored I think)

So, no, making a project inside workspace root is not expected.

And so far I do not see what kind of problem may experience team with different tools preferences taking into account that it uses Git.
Please elaborate more in details what is the case you blocked (if still actual)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants