Giter VIP home page Giter VIP logo

setup-scripts's Introduction

setup-scripts

Contains shared setup scripts for AgileVentures projects

rails_setup.sh

source ./scripts/rails_setup.sh

This script sets up the environment with a basic Rails setup, which is commonly used throughout AgileVentures projects. This includes the following tools:

  • $REQUIRED_RUBY - specifies the required ruby version
  • $GEMSET - names the gemset to be used
  • $SKIP_BUNDLE - if set, will skip bundle install
  • $SKIP_MIGRATIONS - if set, will skip migrations
  • $WITH_PHANTOMJS - if set, will install phantomjs

This script assumes you have PostgreSQL all set up, if you don't know how to set it up, please refer to this guide

setup-scripts's People

Contributors

dcorking avatar yggie avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

setup-scripts's Issues

Ideas to enhance setup script

The script is fine with me.

Perhaps split it up into master script and dependants for ruby, rvm, rails, specific project setup, extra libraries?

Then we can edit only those dependant scripts if needed, and add more scripts to master script for something new.
Maybe move the whole setup to rake?

And give everyone a task/script to write - phantomJs and dependencies, postgre, automation tools, etc., and assign them as maintainers?

Configure postgres permissions

Craig tested this script on Ubunty 14.04 Trusty and reports that because does not configure Postgres permissions, db:setup etc will not work.

A couple of ways to tackle this. Either create a superuser in your name:

[0:12] Paul McCulloch: I was looking at some of the install scripts to help me figure out pg install and found this allowed no mod of pg_hba.conf:
`sudo -u postgres createuser --superuser paul` 

[7:08] David Corking: http://www.postgresql.org/docs/9.1/static/app-createuser.html

or

edit pg_hba.conf as we do in the LocalSupport and vagrant scripts (thanks to @tansaku )

# needs work to handle variable white space
#
sudo sed -i -e 's/local\s\+all\s\+postgres\s\+peer/local all postgres peer map=basic/g' /etc/postgresql/9.1/main/pg_hba.conf

Which approach shall we choose?

OSX El Capitan need brew link openssl -force

We got the following note added to the WSO wiki from @freeranger (I think) following our install instructions:

Note: On OSX El Capitan and above, you may get this error:

An error occurred while installing eventmachine (1.0.7), and Bundler cannot continue.
Make sure that `gem install eventmachine -v '1.0.7'` succeeds before bundling.

If you then try to install that gem, it also fails like this: eventmachine/eventmachine#643, which is because OpenSSL is no longer distributed with OSX so you may need to use brew to set it up:

brew link openssl --force

Then re-try the rails_setup.sh line above and you should be good to go on to the next step.

Assuming that we think that maintaining this script is something that makes sense for us then perhaps we should update and fix this issue in the setup script itself ...

Perhaps we should be recommending people to use C9 - @dalupus - I wonder if this script (with some fixes) set to autorun when someone created a c9 instance would be what we want in terms of a C9 "template" AgileVentures/WebsiteOne#807

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.