Update INSTALL.debian, for Debian 9(stretch)

This commit is contained in:
nothink
2019-08-05 23:29:12 +09:00
parent b9bb5467b8
commit 72ceb484ce
5 changed files with 22 additions and 14 deletions

View File

@@ -3,7 +3,7 @@ set :default_stage, "staging"
set :application, "danbooru"
set :repo_url, "git://github.com/r888888888/danbooru.git"
set :scm, :git
set :deploy_to, "/var/www/danbooru"
set :deploy_to, "/var/www/danbooru2"
set :rbenv_ruby, "2.5.1"
set :linked_dirs, fetch(:linked_dirs, []).push('log', 'tmp/pids', 'tmp/cache', 'tmp/sockets', 'vendor/bundle')
set :branch, ENV.fetch("branch", "master")
set :branch, ENV.fetch("branch", "master")

View File

@@ -30,12 +30,12 @@ RUN apt-get update && \
mkdir -p /var/www/danbooru/shared/data && \
mkdir -p /var/www/danbooru/shared/data/preview && \
mkdir -p /var/www/danbooru/shared/data/crop && \
mkdir -p /var/www/danbooru/shared/data/sample
mkdir -p /var/www/danbooru/shared/data/sample
COPY . /app
RUN chown -R danbooru:danbooru /app && \
chown -R danbooru:danbooru /var/www/danbooru && \
mkdir /var/run/danbooru && \
chown danbooru:danbooru /var/run/danbooru
chown danbooru:danbooru /var/run/danbooru
EXPOSE 3000
USER danbooru
RUN echo 'gem: --no-document' > ~/.gemrc && \
@@ -46,4 +46,4 @@ RUN yarn install
COPY script/install/database.yml.templ /app/config/database.yml
COPY script/install/danbooru_local_config.rb.templ /app/config/danbooru_local_config.rb
EXPOSE 3000
CMD sleep 1d
CMD sleep 1d

View File

@@ -1,5 +1,5 @@
# Set your full path to application.
app_path = "/var/www/danbooru/current"
app_path = "/var/www/danbooru2/current"
# Set unicorn options
worker_processes 12
@@ -14,7 +14,7 @@ user 'danbooru', 'danbooru'
# Fill path to your app
working_directory app_path
# Should be 'production' by default, otherwise use other env
# Should be 'production' by default, otherwise use other env
rails_env = ENV['RAILS_ENV'] || 'production'
# Log everything to one file