Comments (2)
Looks like there was some discussion internally on this that didn't make it onto the issue. Some stuff that came up:
- What do we do about different output locations for dev and release builds?
- Is this effectively going to turn into some
npm run <script>
kind of thing? How do we feel about that? - How much complexity are we okay with investing into
spin build
? Accreting a feature here and a feature there is going to be more effort for less delight than going "welp looks like we're building a build system, let's do some design."
For me, part of the challenge is that spin build
and spin up
/spin deploy
are decoupled. If I do a dev build followed by spin up
, presumably I want to run the dev build... but that means we need to either dev and release build to the same place, or we need to remember the last build command, neither of which feel lovely. Conversely we don't want spin deploy
or spin registry push
to roll out a dev build just because that's the last one the user happened to build.
from spin.
Definitely some concerns there, I think it would have to remember the last build. I guess it's up to you whether you want people to be able to push the dev profile, although if I choose a different release profile that checking might get interesting. Perhaps a setting for the desired release-profile as well as different commands?
You could build a full on npm run kinda thing, but at least for this purpose I'm happy to delegate it to Cargo with a few Spin additions.
This is very much a Rust specific thing though, I imagine there's a more general way to do it, perhaps I could build a plugin that does this
from spin.
Related Issues (20)
- Enable `spin add` for Redis templates HOT 3
- Performance is slow on HTTP Trigger HOT 2
- `spin up --build --help` incorrectly builds the application
- Http Outbound request's header Host value comes with port number. HOT 5
- `spin registry login` fails when trying to authenticate against Digital Ocean Container Registry
- MQTT Outbound False Positive HOT 1
- Failed to execute plugin js2wasm in NixOS HOT 5
- Test Failures After Running `nix develop` and `make test` HOT 2
- Cache Directory is not configurable HOT 1
- Some Spin crates are not taking the workspace version
- spin up command prints out my redis credintial in plain text
- Disable pooling allocator automatically in environments where it will fail HOT 1
- Redis trigger `channel` should also support variables
- Redis trigger exits on connection failure without any diagnostics
- Exhaustively trace Spin codebase
- Have `spin_telemetry` support gRPC protocol
- Upstream tracing into Wasmtime dependency
- Allow users to configure trace context propagation
- Improve default `TRACING_LEVEL` to filter out unwanted spans from external crates
- In `component.files`, mapping a single file to `/` gives an unhelpful error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spin.