Opened 5 years ago

Closed 5 years ago

#41 closed task (fixed)

Write helper scripts...

Reported by: borja Owned by: borja
Priority: major Milestone: OpenWorkouts 0.1
Component: infraestructure Keywords:
Cc:

Description

... so new developers can set up an environment quickly.

install script:

Requirements/workflow idea:

  1. developer grabs copy of the repo (either darcs or git)
  1. developer gives exec permission to the bin/install script
  1. developer exec ./bin/install within the repo:

3.1. ./bin/install PATH <- this installs everything in the given path

3.2. ./bin/install <- this installs everything in the user home, ~/openworkouts

The steps the installer has to go through:

  1. check python3 is installed
  1. create virtual env
  1. activate virtual env
  1. pip install --upgrade setuptools pip
  1. pip install --upgrade --process-dependency-links -e .[testing]
  1. chmod +x bin/js_deps bin/start bin/stop
  1. ./bin/js_deps
  1. show a message telling the user how to start/stop/restart the services

start/stop/restart

Basically, start will run pserve --reload development.ini, stop will kill that process, restart calls stop, then start.

Change History (2)

comment:1 Changed 5 years ago by borja

  • Owner set to borja
  • Status changed from new to accepted

comment:2 Changed 5 years ago by borja

  • Resolution set to fixed
  • Status changed from accepted to closed

Install script implemented here: [30/OpenWorkouts-current] (look at the patch message to get more info on how to use it)

Start script implemented here: [31/OpenWorkouts-current]

Note: See TracTickets for help on using tickets.