This repository has been archived by the owner on Feb 11, 2019. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 9
Install from Docker
GiantMolecularCloud edited this page Sep 5, 2018
·
3 revisions
- Open your favorite terminal app
- Install git and docker
-
cd
to your wherever you'd like to keep Stash (git will create the directory where stash is stored for you) - Download / clone this repository
git clone https://github.com/stashapp/stashserver.git
- Enter into the directory you just cloned stash into e.g.
cd stashserver
. - Create a file named ".env" with the following contents and edit the paths as appropriately:
STASH_DATA=/path/to/media
STASH_METADATA=/path/to/save/metadata
STASH_CACHE=/path/for/cache/files
STASH_DOWNLOADS=/path/to/downloads
- Setup the docker container
bin/ruby start_docker.rb
- Visit Stash
your_servers_ip:8008
in your browser and you should see Stash with an empty library
To run the rake tasks:
- Log into the docker container you created
docker exec -it stash /bin/bash
- Enter the stashserver directory in your container
cd /home/stash/app
- Make sure the user in the docker container can write to the directories you specified in the .env file (except the STASH_DATA directory which only needs read access).
- You should be able to run the rake tasks as needed to scan/add media to your stash collection e.g.
bin/rails metadata:generate_all
.