Git Product home page Git Product logo

describedotme's Introduction

Deployment guide for back-end server

##Deployment

  1. Install Ruby version ~> 1.9.2, Ruby on Rails version ~> 3.2.8, RubyGem ~> v1.8.24. Reference to: http://rubyonrails.org/download

  2. Configure database following the steps below.

  3. Setup

      $ bundle install
      $ rake db:migrate
      $ rake db:seed
  1. Populate sample data for manual testing.
      $ rake db:populate_demo_user
  1. Populate sample data for automated testing. (Ignore if not running automated testing).
      $ rake db:populate
  1. Start the server
      $ rails server
  1. Server will be up and running at localhost:3000

##Database configuration:

  1. Download and Install MySql database server from http://dev.mysql.com/downloads/mysql/
  2. Login into MySql Db server using the root account.
      $ mysql -u root -p
      <enter passsword> 

After logged in, we will start configure the database:

  1. Create 3 database: describedotme_development, describedotme_test, describedotme_production (for development, test and producton environment)
       CREATE DATABASE IF NOT EXISTS describedotme_development;
       CREATE DATABASE IF NOT EXISTS describedotme_test;
       CREATE DATABASE IF NOT EXISTS describedotme_production;
  1. Instead of running the db as root (which could be dangerous), the site is configure to run as another db user. Create db user: describedotme, password: describedotme (subject to change upon deployment)
      CREATE USER 'describedotme'@'localhost' IDENTIFIED BY 'describedotme';
  1. Grant all priviliges for user describedotme
       GRANT ALL PRIVILEGES ON describedotme_development.* TO describedotme@localhost;
       GRANT ALL PRIVILEGES ON describedotme_test.* TO describedotme@localhost;
       GRANT ALL PRIVILEGES ON describedotme_production.* TO describedotme@localhost;

describedotme's People

Contributors

amulyakhare avatar botaydotcom avatar creativepsyco avatar hdoan741 avatar lokeyanhao avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

describedotme's Issues

Item Post - 500 Internal Server Error

Processing by ItemsController#create as JSON
Parameters: {"title"=>"string", "description"=>"string", "item"=>{"description
"=>"string", "title"=>"string"}}
Completed 500 Internal Server Error in 1ms

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.