مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2025-12-01 05:43:04 +00:00
only compile assets on upgrade if they aren't prebuilt
هذا الالتزام موجود في:
@@ -53,7 +53,12 @@ case "$1" in
|
||||
;;
|
||||
|
||||
upgrade)
|
||||
run "bundle exec rake assets:precompile db:migrate"
|
||||
if [ ! -f "public/assets/.prebuilt" ]; then
|
||||
echo 'Compiling Assets'
|
||||
run "bundle exec rake assets:precompile"
|
||||
fi
|
||||
echo 'Migrating database'
|
||||
run "bundle exec rake db:migrate"
|
||||
;;
|
||||
|
||||
console)
|
||||
|
||||
@@ -70,6 +70,7 @@ File.open("#{WC_PATH}/lib/postal/version.rb", 'w') { |f| f.write(version_file) }
|
||||
unless ENV['NO_ASSETS']
|
||||
puts "\e[44;37mCompiling assets\e[0m"
|
||||
system!("cd #{WC_PATH} && bundle exec rake assets:precompile")
|
||||
system!("touch #{WC_PATH}/public/assets/.prebuilt")
|
||||
end
|
||||
|
||||
# Remove files that shouldn't be distributed
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم