Skip to content

Instantly share code, notes, and snippets.

@jvidalba1
Last active February 27, 2018 19:35
Show Gist options
  • Save jvidalba1/9cfe88b7a3dcf77d8cfd7e39a27ae0bb to your computer and use it in GitHub Desktop.
Save jvidalba1/9cfe88b7a3dcf77d8cfd7e39a27ae0bb to your computer and use it in GitHub Desktop.
Divorce force Installation
  • Create ssh key and add it to Bitbucket settings account.

    Copy id_rsa.pub file from .ssh folder

    Paste the file content in ssh settings in Bitbucket account.

  • Clone repository

    git clone git@bitbucket.org:ballastlane/divorce-force.git

  • Install bundler

    gem install bundler

  • Install all project dependecies (Gems)

    In the project folder bundle install

  • Postgres

    • Installation

      brew install postgres

      ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents

      launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist

    • Create user role

      In the console execute createdb

    • Connect to postgres console

      psql to connect to user role

    • Setup and configure roles

      • Create user:

        CREATE USER postgres WITH PASSWORD 'kogi';

      • Permissions:

        ALTER USER postgres CREATEDB;

        ALTER USER postgres WITH SUPERUSER;

  • Install node, redis, imagemagick

    brew install ___

  • Create database

    In the project folder rake db:create

  • Run migrations

    In the project folder rake db:migration

  • Upload initial data from a dump file

  • Run main tasks:

    In the project folder rake articles:update_articles

  • Install js dependencies

    In the project folder npm install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment