GithubHelp home page GithubHelp logo

cheyenneweaver / www.jboss.org Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jboss-developer/www.jboss.org

0.0 1.0 0.0 15.92 MB

Sources for http://www.jboss.org (currently available at http://www-beta.jboss.org)

Ruby 10.57% JavaScript 43.27% CSS 46.16%

www.jboss.org's Introduction

jboss-developer-site

Getting Started

This section covers the steps you need to do in order to setup your environment and get the site running for the first time. Further sections cover the details.

  1. Configure environment variables needed for the site.

    • Request the following values from the JBoss Developer team:

        vimeo_access_token_secret
        vimeo_client_secret
        dcp_user
        dcp_password
      
    • Export the values in the appropriate startup script. For example:

        export vimeo_access_token_secret=<VIMEO_ACCESS_TOKEN_SECRET>
        export vimeo_client_secret=<VIMEO_CLIENT_SECRET>
        export dcp_user=<DCP_USER>
        export dcp_password=<DCP_PASSWORD>
      
  2. Configure the software. NOTE: You must use a version of Ruby installed via RVM.

    • Install RVM from here http://rvm.io if you don't already have it.

    • Check RVM knows about ruby-2.1.1, by running the following command and looking in the # MRI Rubies section. If it doesn't, you must upgrade RVM.

        rvm list known
      
    • Install the correct Ruby version (See here for details on why '--disable-binary' is needed):

        rvm install ruby-2.1.1 --disable-binary
      
    • If you see the Error running 'requirements_osx_brew_libs_install autoconf automake libtool pkg-config libyaml readline libksba openssl' error message, you may need to run the following, and then retry the above install command:

        rvm requirements
      
    • Install any required supporting software. For example, on Fedora you may need to:

        sudo yum install -y rubygem-nokogiri
        sudo yum install -y gcc ruby-devel libxml2 libxml2-devel libxslt libxslt-devel
        sudo sysctl fs.inotify.max_user_watches=524288
        sudo sysctl -p
      
  3. Fork the project, then clone your fork and add the upstream repository.

      git clone [email protected]:YOUR_USER_NAME/www.jboss.org.git
      cd www.jboss.org
      git remote add -f upstream [email protected]:jboss-developer/www.jboss.org.git
    
  4. Bootstrap the gemset:

     bundle install
    
  5. Build the site:

     rake update
     rake clean preview
    

NOTE The site will take a long time to build for the first time (10 minutes+). Subsequent builds are much quicker.

If the build was successful, you should be able to visit the site here: http://localhost:4242

Development

If you are working on the CSS, make sure to also run compass watch

New pages should be added to the root with the extension .html.slim

Updating the DCP

Updates to the DCP should happen automatically if the build is being done on the build server, however, if it is down or there is another emergency situation and the site needs to be built and content pushed to the DCP for staging or production please contact Pete Muir, Jason Porter, Andrew Rubinger or Ray Ploski. Below are steps to setup the environment for pushing content to the DCP.

In order to update content in the DCP you must have the URL set in config.yaml and the following two environment variables set:

export dcp_user=jboss-developer
export dcp_password=<see one of the people above for this>

If these two variables are not set you will see a warning during the build:

Missing username and / or password for searchisko

You can then preview the staging site, which will also push data to the DCP staging server:

rake preview[staging]

Alterntively, you can preview/deploy to staging or production and the asociated DCP server will also be updated.

Deployment

Run rake deploy[staging] or rake deploy[production]

To tag:

rake deploy[staging,tagname]

To run in Awestruct in development mode, execute:

rake

To run Awestruct while developing, execute:

rake preview

To clean the generated site before you build, execute:

rake clean preview

To deploy using the production profile, execute:

rake deploy

To get a list of all tasks, execute:

rake -T

Now you're Awestruct with rake!

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.