Code Monkey home page Code Monkey logo

setup_rails_application's Introduction

Setup Rails app

This is a collection of scripts I use to setup my Rails applications for production. Please notice that it may be bound very tightly to my environment. It may or may not work for you as it does for me. It moreover bases on some conventions I use that may not suit your needs.

Passwords are passed to the console in the scripts. This may be a security risk if you’re not the only one that has access to the server.

Environment

  • Ubuntu 8.04
  • Apache with passenger

Instructions

Configuration

Create a config.yml from config_sample.yml and specify all necessary settings.

Setup a Rails application on the production server

Login to your server and run setup_server.rb

What it does for you:

  • Creating a project directory under /var/www/project_name
  • Adding a user for the application and and setting permissions
  • Creating an apache configuration (passenger)
  • Creating a database and a user for the project

Don’t forget to restart apache after your first deployment

Prepare a Rails application for deployment

Run setup_local.rb locally

What it does for you:

  • Creating a capistrano config
  • Creating a maintenance.html file
  • Creating a .gitignore file with the most common cases

Force

You can use the —force operator to force all operations.
This will overwrite any existing configuration files.

Created by masone (Christian Felder, http://www.masone.ch)

LICENSE: MIT

setup_rails_application's People

Contributors

masone avatar

Watchers

 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.