Giter VIP home page Giter VIP logo

octostrap's People

Contributors

bobwaycott avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

octostrap's Issues

rake preview crashes with "undefined method 'spawn' for Process:Module"

I ran through the quick setup instructions, specifically:

git clone https://github.com/bobwaycott/octostrap.git notanantelope.com
cd notanantelope.com
bundle install
rake setup (selected yes for github setup & gh-pages setup)
rake gen_deploy
rake preview

The crash is as follows:

robertfw@apollo notanantelope.com (master)$ rake preview --trace
** Invoke preview (first_time)
** Execute preview
Starting to watch source with Jekyll and Compass. Starting Rack on port 4000
rake aborted!
undefined method `spawn' for Process:Module
/home/robertfw/code/personal/notanantelope.com/Rakefile:224
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `execute'
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `top_level'
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `top_level'
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `run'
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/var/lib/gems/1.8/gems/rake-0.9.2.2/bin/rake:33
/usr/local/bin/rake:19:in `load'
/usr/local/bin/rake:19
Tasks: TOP => preview

My repo is at https://github.com/robertfw/notanantelope.com, if that helps at all. Beyond the commands I listed above, I have not altered anything or added any content.

Handling custom domains

There are some minor pathing issues when running as a gh-pages site (as opposed to a user/org site) using a custom domain.

The default setup is expecting includes to reside at i.e. username.github.io/project-dir/stylesheets, but this breaks when using a custom domain - the browser looks at example.com/notanantelope/stylesheets, when it should be looking at example.com/stylesheets.

My initial attempt at fixing this involved modifying _config.yml settings:
change "root" from "/project_dir" to "/"
change destination from "public/project_dir" to "public"

Unfortunately this broke my generation, the site is not picking anything up. I dun gone and goobed it up!

Don't worry about this one, I'll take care of it! I didn't spot anything in the Octopress or Github Pages docs, but I'm sure it's either been covered, or is a relatively simple modification that I'm missing because I've still only skimmed the Octopress docs. I'll sit down at lunch and spend some quality time with the documentation.

Once I have this worked out I'll submit a pull request to update README with instructions.

What do you think about also modifying the setup task to prompt the user for a domain name? We could automate the creation of the CNAME file and alter the settings as needed, then spit out instructions for modifying their DNS settings.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.