Commit Graph

18 Commits

Author SHA1 Message Date
David Cook
0040e4d454 Fix script
rm: tmp/product_import-20250505-81606-9pucu5: is a directory
2026-02-03 11:33:02 +11:00
Maikel Linke
6fb4048bfd Add context: this script will be used to deploy production 2026-01-28 13:47:18 +11:00
Maikel Linke
c3def926f1 Fail setup script when nodenv is missing 2026-01-28 10:40:40 +11:00
Maikel Linke
85439b4b54 Delete even more tmp dev files 2026-01-22 13:58:46 +11:00
Maikel Linke
35724bec81 Delete generated JS for tests on update 2026-01-22 12:39:10 +11:00
Maikel Linke
6cbc6fbca3 Remove precompiled assets on update 2026-01-22 12:27:04 +11:00
Maikel Linke
b0b03cbb5f Delete old screenshots when updating app 2026-01-22 12:26:08 +11:00
Maikel Linke
8953e8481d Remove unnecessary bundler install script
Bundler does the same already.
2026-01-19 10:40:01 +11:00
Maikel Linke
1c703905fe Remove now redundant install of bundler 2026-01-19 10:34:34 +11:00
Maikel Linke
ab157246df Install the current node version in setup 2023-09-15 15:25:16 +10:00
David Cook
412dac7556 Don't show extra red messages when gems missing
When a gem is missing, it looks like a big ugly error. But we don't need to see this, because bundle install will run next and tell us which gems its installing.

Bundle check isn't actually necessary because bundle install will handle this, but for some reason it's 300ms slower. So I chose to keep 'check' to help keep this script nice and quick.
2023-08-16 09:56:24 +10:00
David Cook
91c874737a Combine rake tasks to save time
The log:clear task seems to take quite a bit of time. At least we can speed up a bit by only booting up Rails once.

I'm more likely to run the script if it's quick ;)
2023-08-09 10:28:41 +10:00
David Cook
9d79c7cda7 Reduce bundler install output
bundle install always shows a very long list of all gems. But we really only want to know about the new gems being installed. Thankfully there's an option for that.
2023-08-09 10:26:11 +10:00
Maikel Linke
da0ef8531b Install our used bundler version 2023-04-03 14:37:31 +10:00
Maikel Linke
f12ee186ee Speed up setup script when restarting rails 2023-04-03 14:33:39 +10:00
Maikel Linke
93ef95f58e Update JS dependencies with setup script 2023-04-03 14:33:39 +10:00
Maikel Linke
49dd1dd1fa Update setup script with newest template
I used the script from a new Rails 7 project.
2023-04-03 14:32:22 +10:00
Viktor Smari
14a1992d52 Stop ignoring the /bin folder
New rails apps do not ignore the bin folder.
When running rails app:update, the bin folder also gets update.
This also allows us to use bin/rails to run rails, or bin/yarn etc.
Tip: create an alias r=./bin/rails
2021-06-30 13:33:11 +02:00