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

Workspace creation from config with code #4266

Closed
rajivece opened this issue Feb 28, 2017 · 3 comments
Closed

Workspace creation from config with code #4266

rajivece opened this issue Feb 28, 2017 · 3 comments
Labels
kind/question Questions that haven't been identified as being feature requests or bugs.

Comments

@rajivece
Copy link

Hi,
I'm trying to export workspace with code from git using export as a file and trying to import it into another Che instance through Dashboard -> New Workspace -> Create from configuration.
Workspace is created successfully but the code is not pulled.
How do I achieve this?

Reproduction Steps:
Two instances of Che are running on two systems

OS and version:
Ubuntu 14.04
Docker version: 1.12.6

@TylerJewell TylerJewell added the kind/question Questions that haven't been identified as being feature requests or bugs. label Feb 28, 2017
@TylerJewell
Copy link

Your code is not part of a workspace, so it will not be exported when you export a workspace. So, you should have your code committed to a git repository, or saved within a ZIP file - and then when you re-import a workspace, you can then re-clone the code.

The code is treated as a special purpose set of files and it's persisted outside of the workspace itself so that the workspace runtime can have an independent workflow of the code workflow.

Your code is automatically saved onto the host - you can see it in /data/instance where /data is the folder where you mounted when starting Che.

@ghost
Copy link

ghost commented Mar 1, 2017

@rajivece @TylerJewell source is saved to workspace config, but it's just config. When you start such a workspace, you will see your project icon in the project tree with a red cross on it, which means it is in workspace config but there are no sources (physical location).

When clicking on such a project, the IDE should offer you to close the project from the repo which is saved in a workspace config.

Here's the issue - #4196

@ghost
Copy link

ghost commented Mar 3, 2017

Closing the issue. Follow #4196

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Questions that haven't been identified as being feature requests or bugs.
Projects
None yet
Development

No branches or pull requests

2 participants