mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-22 15:15:50 +01:00
Use corepack yarn in bin/setup
(#30573)
This commit is contained in:
parent
94d8d1094f
commit
3495f0d9ba
1 changed files with 4 additions and 8 deletions
12
bin/setup
12
bin/setup
|
@ -13,17 +13,13 @@ FileUtils.chdir APP_ROOT do
|
||||||
# This script is idempotent, so that you can run it at any time and get an expectable outcome.
|
# This script is idempotent, so that you can run it at any time and get an expectable outcome.
|
||||||
# Add necessary setup steps to this file.
|
# Add necessary setup steps to this file.
|
||||||
|
|
||||||
puts '== Installing dependencies =='
|
puts "\n== Installing Ruby dependencies =="
|
||||||
system! 'gem install bundler --conservative'
|
system! 'gem install bundler --conservative'
|
||||||
system('bundle check') || system!('bundle install')
|
system('bundle check') || system!('bundle install')
|
||||||
|
|
||||||
# Install JavaScript dependencies
|
puts "\n== Installing JS dependencies =="
|
||||||
system! 'bin/yarn'
|
system! 'corepack prepare'
|
||||||
|
system! 'bin/yarn install --immutable'
|
||||||
# puts "\n== Copying sample files =="
|
|
||||||
# unless File.exist?('config/database.yml')
|
|
||||||
# FileUtils.cp 'config/database.yml.sample', 'config/database.yml'
|
|
||||||
# end
|
|
||||||
|
|
||||||
puts "\n== Preparing database =="
|
puts "\n== Preparing database =="
|
||||||
system! 'bin/rails db:prepare'
|
system! 'bin/rails db:prepare'
|
||||||
|
|
Loading…
Reference in a new issue