Giter Site home page Giter Site logo

sinatra-up-and-running-blog's Introduction

Sinatra Up And Running. Chapter 5. Your Own Blog Engine

  • Modifications of the one in https://github.com/markzero/Sinatra-Up-And-Running-Practice
    by markzero (Marko Jakic)

  • Once you have your repository set up on GitHub, go to the Admin section, navigate to service Hooks, and add a Post-Receive URL pointing to the /update endpoint of your blog.

    Then:

    1.- Run rake production

    2- Modify one of the articles in articles/

    3- git ci -m 'modified article' -a

    4- git push origin master

    5- Visit localhost:4567/ and then the modified article in the web browser. Of course use another port

  • TODO: Click "reload" to produce the "reload" (git pull origin master and subsequent update)

  • Mac OSX Maverick. I had problems when installing gems making use of native Xcode.

                gem install redcarpet
    

    It gave a message like:

      You have not agreed to the Xcode license agreements, please run
    
            xcodebuild -license (for user-level acceptance) 
    
                 or 
    
            sudo xcodebuild-license (for system-wide acceptance) 
    
      from within a Terminal window to review and agree to the Xcode 
      license agreements.
    

    The problem was fixed following the indication above.

sinatra-up-and-running-blog's People

Contributors

crguezl avatar

Watchers

 avatar  avatar

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.