Skip to content

robwa/sharedlists

 
 

Repository files navigation

Sharedlists

Dependency Status Docker Status

Sharedlists is a simple rails driven database for managing multiple product lists of various suppliers.

This app is used in conjunction with foodsoft.

Setup

Copy config/database.yml.SAMPLE to config/database.yml and

docker-compose run app bundle
docker-compose run app rake db:setup

Development

docker-compose up

Creating a user

To access sharedlists, you'll need to create a user (and I guess you want admin access).

docker-compose run --rm app rails c
> u = User.new(email: '[email protected]', password: 'secret')
> u.admin = true
> u.save!
> exit

Production

Either fetch the image, or build it:

docker pull sharedlists:latest
# or
docker build --tag sharedlists:latest --rm .

Then set environment variables SECRET_TOKEN and DATABASE_URL and run:

docker run --name sharedlists_web \
  -e SECRET_TOKEN -e DATABASE_URL -e RAILS_FORCE_SSL=false \
  sharedlists:latest

To run cronjobs, start another instance:

docker run --name sharedlists_cron \
  -e SECRET_TOKEN -e DATABASE_URL \
  sharedsts:latest  ./proc-start cron

About

Manage and update shared article databases for Foodsoft.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 82.1%
  • HTML 14.4%
  • CSS 1.7%
  • Shell 1.1%
  • Other 0.7%