Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Neff <benjamin@coding4coffee.ch>2022-07-21 23:33:02 +0300
committerBenjamin Neff <benjamin@coding4coffee.ch>2022-07-22 00:13:44 +0300
commit08e6f1e2a3ca7dce60f2e62a7133528f1cd3049f (patch)
tree895cf0325c8e71ced7ad8471b562108c5ffec6cb
parent9b24407b68bbd9a80e96ffe5795b1286272b7087 (diff)
Configure bundler and copy example configs on bin/setup
and also remove `bin/rails restart`, this does nothing for us at the moment anyway, so just remove it.
-rwxr-xr-xbin/setup17
1 files changed, 11 insertions, 6 deletions
diff --git a/bin/setup b/bin/setup
index 90700ac4f..8a932eeb2 100755
--- a/bin/setup
+++ b/bin/setup
@@ -15,15 +15,20 @@ FileUtils.chdir APP_ROOT do
puts '== Installing dependencies =='
system! 'gem install bundler --conservative'
+ system!('script/configure_bundler')
system('bundle check') || system!('bundle install')
# Install JavaScript dependencies
system! 'bin/yarn'
- # puts "\n== Copying sample files =="
- # unless File.exist?('config/database.yml')
- # FileUtils.cp 'config/database.yml.sample', 'config/database.yml'
- # end
+ unless File.exist?('config/diaspora.toml')
+ puts "\n== Copying example diaspora.toml =="
+ FileUtils.cp 'config/diaspora.toml.example', 'config/database.yml'
+ end
+ unless File.exist?('config/database.yml')
+ puts "\n== Copying example database.yml =="
+ FileUtils.cp 'config/database.yml.example', 'config/database.yml'
+ end
puts "\n== Preparing database =="
system! 'bin/rails db:prepare'
@@ -31,6 +36,6 @@ FileUtils.chdir APP_ROOT do
puts "\n== Removing old logs and tempfiles =="
system! 'bin/rails log:clear tmp:clear'
- puts "\n== Restarting application server =="
- system! 'bin/rails restart'
+ # puts "\n== Restarting application server =="
+ # system! 'bin/rails restart'
end