Creating a Stack without the UI? #1296
-
Hello, I was wondering if there was a method or documentation for creating a stack without using the "Add a stack" button in the UI? Some scriptable way perhaps? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I you just wish to bulk create stacks on your inatance with a script, you can use You need some basic Ruby and Rails knowledge. You can look at the shipit-engine/test/dummy/db/seeds.rb Lines 29 to 35 in 31705cc |
Beta Was this translation helpful? Give feedback.
-
Perfect thanks!
…On Sat, Feb 11, 2023, 1:34 AM Jean byroot Boussier ***@***.***> wrote:
I you just wish to bulk create stacks on your inatance with a script, you
can use bin/rails runner <your-ruby-script>.
You need some basic Ruby and Rails knowledge. You can look at the seeds.rb
script for inspiration:
https://github.com/Shopify/shipit-engine/blob/31705cc9bdcde7a4e6ddd88715ce27839d9a3a3d/test/dummy/db/seeds.rb#L29-L35
—
Reply to this email directly, view it on GitHub
<#1296 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABGYRQITJ7LHIXGR5TYXY73WW5FKZANCNFSM6AAAAAAUYMTFJQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
I you just wish to bulk create stacks on your inatance with a script, you can use
bin/rails runner <your-ruby-script>
.You need some basic Ruby and Rails knowledge. You can look at the
seeds.rb
script for inspiration:shipit-engine/test/dummy/db/seeds.rb
Lines 29 to 35 in 31705cc