This repository was 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 Source (MacOS)
chimerasoup edited this page Jun 9, 2018
·
2 revisions
- Open your favorite terminal app
- Change to your home folder by running
cd ~ - Install FFMPEG
brew install ffmpeg --with-libvpx --with-opus --with-x265 --with-webp - Install libmagic
brew install libmagic - Install optional dependencies if you want to enable the metadata scraper:
brew install chromedriver && brew install aria2 - Make a folder for the stash app and change to that folder by running
mkdir Stash && cd Stash - Run the following command to download the server
git clone https://github.com/stashapp/stashserver.git - Run the following command to download the frontend
git clone https://github.com/stashapp/stashfrontend.git -
brew install nginxand follow the instructions - Stop nginx by running
systemctl stop nginx - Remove the default nginx site by running
sudo rm /etc/nginx/sites-enabled/default - Copy the server nginx config by running
sudo cp stashserver/docker/nginx_proxy.conf /usr/local/etc/nginx/servers/stash.conf - Modify the server nginx config by running the following command:
sudo sed -i 's#/home/app/stash/public#'`pwd`'/stashserver/public#' /etc/nginx/sites-enabled/stash.conf
- Copy the frontend nginx config by running
sudo cp stashserver/docker/nginx_frontend.conf usr/local/etc/nginx/servers/stash_frontend.conf - Modify the frontend nginx config by running:
sudo sed -i 's#/home/app/frontend#'`pwd`'/stashfrontend/dist#' /etc/nginx/sites-enabled/stash_frontend.conf
- Change to the server directory:
cd stashserver - Install the gems with:
bundle install - Make a file called
application.ymllocated in thestashserver/configfolder and edit the paths as necessary. Here is an example (change the paths where it makes sense for you)
# The location of the stash
stash_directory: '/home/stash/Stash/content'
# The location metadata should be exported to
stash_metadata_directory: '/home/stash/Stash/metadata'
# The location to store cache files
stash_cache_directory: '/home/stash/Stash/cache'
# The location to store scraped downloads
stash_downloads_directory: '/home/stash/Stash/downloads'
- Set up the database with
rails db:migrate. Test that the server runs correctly by typingrails s. If there are no errors then you have set it up correctly. PushCtrl+Cto quit the server. - Run this command to change over to the frontend folder:
cd ../stashfrontend - Install Gulp CLI globally:
sudo npm install gulp-cli -g - Install Angular CLI globally:
sudo npm install @angular/cli -g - Install the frontend dependencies:
npm install - Build the frontend with
ng build --prod - Start nginx again with:
systemctl start nginx - Change back to the server directory:
cd ../stashserver - Run the back end stashserver with
puma -t 8:32
You should now be able to access the app from http://your_ip_here:8008 as long as the server is running in the terminal.