Last active
April 10, 2018 18:05
-
-
Save abhiesa/63b3dd8b9aed5f54914d to your computer and use it in GitHub Desktop.
Setup an Existing Octopress Repository After Git Clone
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Basically, you need to create and link the deploy directory to master branch. | |
First, we clone the repo and switch to the correct branch: | |
1) git clone https://github.com/username/username.github.io.git | |
2) git checkout source | |
Then we need to setup the deploy directory. | |
1) mkdir _deploy | |
2) cd _deploy | |
3) git init | |
4) git remote add -t master -f origin https://github.com/username/username.github.io.git | |
Done! Now we can make changes in source branch and use rake gen_deploy as usual. | |
Using Oracle Java 7 is not formally supported by Ubuntu. There's plenty solutions for installing it, listed on https://help.ubuntu.com/community/Java . | |
The simplest one listed is this one: | |
sudo add-apt-repository ppa:webupd8team/java | |
sudo apt-get update | |
sudo apt-get install oracle-java7-installer | |
It'll keep your java 7 installation up to date. | |
To automatically set up the Java 7 environment variables JAVA_HOME and PATH: | |
sudo apt-get install oracle-java7-set-default |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment