Skip to content
This repository has been archived by the owner on Oct 30, 2019. It is now read-only.

Cloud9: Added dedicated workspace and use symlink to homeassistant config. #178

Merged
merged 5 commits into from
Sep 3, 2018
Merged

Cloud9: Added dedicated workspace and use symlink to homeassistant config. #178

merged 5 commits into from
Sep 3, 2018

Conversation

ludeeus
Copy link
Member

@ludeeus ludeeus commented Aug 12, 2018

Description:

Uses /home/homeassistant/c9workspace as the workspace.
.homeassistant are symlinked to that workspace as homeassistant

ctrl+e works for searching.

Related issue (if applicable): Fixes #177

Checklist (Required):

If pertinent:

  • Script has validation check of the job.
  • Created/Updated documentation at /docs

@ludeeus ludeeus added this to the v0.9.2 milestone Aug 12, 2018
@ludeeus ludeeus requested a review from Landrash August 12, 2018 17:30
mkdir /home/homeassistant/c9workspace
ln -s /home/homeassistant/.homeassistant/ /home/homeassistant/c9workspace
ln -s /home/homeassistant/.c9 /home/homeassistant/c9workspace
mv /home/homeassistant/.homeassistant /home/homeassistant/homeassistant
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a terrible idea. Create a symlink instead and both the default and the change will function.
We should always avoid changing defaults since other projects can assume that they are correct.

@ludeeus
Copy link
Member Author

ludeeus commented Aug 17, 2018

@Landrash Agreed! That would have been bad!
Looks like I forgot to put in a subdir in the mv command :(

mkdir /home/homeassistant/c9workspace
ln -s /home/homeassistant/.homeassistant/ /home/homeassistant/c9workspace
ln -s /home/homeassistant/.c9 /home/homeassistant/c9workspace
mv /home/homeassistant/c9workspace/.homeassistant /home/homeassistant/c9workspace/homeassistant
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line makes no sense to me?
The symlink created should be c9workspace and shouldn't contain this directory?

@ludeeus ludeeus changed the title Cloud9: Added dedicated workspace and use symlink to homeassistant config. WIP: Cloud9: Added dedicated workspace and use symlink to homeassistant config. Aug 24, 2018
@ludeeus
Copy link
Member Author

ludeeus commented Aug 24, 2018

I will find another way for this

@ludeeus
Copy link
Member Author

ludeeus commented Sep 2, 2018

@Landrash does it look better now?
The result is the same.

@Landrash
Copy link
Collaborator

Landrash commented Sep 3, 2018

Looks good and can be merged after WIP tag is removed.

@ludeeus ludeeus changed the title WIP: Cloud9: Added dedicated workspace and use symlink to homeassistant config. Cloud9: Added dedicated workspace and use symlink to homeassistant config. Sep 3, 2018
@ludeeus ludeeus merged commit 2091d6b into home-assistant:dev Sep 3, 2018
@ludeeus ludeeus deleted the fix-for-cloud9 branch September 3, 2018 07:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants