Comments (4)
This is the relevant code:
bruno/packages/bruno-electron/src/index.js
Lines 64 to 86 in d268b47
When starting in dev mode, Bruno tries to open http://localhost:3000
. When run in production mode, Bruno opens the JavaScript bundle included in the app.
If you try to run Bruno from source, make sure to run npm run dev:web
before starting electron.
from bruno.
Nice, straight to the point!
However, I would postulate that isDev
isn't the right tool for this use case and should actually be app.isPackaged.
In the recent times when developing an Electron app - and having ELECTRON_IS_DEV
permanently turned on - I leaned to expect many other apps opening the dev tools, which I understand - it basically flips them into debug mode. However, none of them straight up broke like Bruno did.
The decision to use the dev-server served content isn't something that should be based on the debug
flag. I'd say it should either be a run argument (like --useDevServer) or the above mentioned app.isPackaged
check. Is Bruno ever expected to run not packaged in production?
I'm open to creating a PR for either of the fixes :)
from bruno.
Yeah, you're right, app.isPackaged would totally be the better option here. You can create a PR for this, if you want, we would appreciate it.
from bruno.
#1260 is open :)
from bruno.
Related Issues (20)
- Set "Auth: Inherited" as default on openapi import
- Fonts are missing when trying to add collection location [Snap version]
- Import examples when importing OpenAPI HOT 2
- Content-Type being set to application/x-www-form-urlencode when choosing No Body on a Put Request causing 415 error HOT 1
- Create New Request Window Closes When Clicking Outside Without Warning
- Unable to Set Authentication at Collection Level, Making Inheritance Feature Ineffective HOT 2
- Icons Lack Descriptions, Causing Usability Issues
- Feature Request: Add multiple response viewing panes (HTML, raw, JSON, table, etc...)
- Bruno takes 2 requests to apply the changes made by a script HOT 2
- Compatibility with urls containing IPv6 IP addresses
- Blank screen on macOS v1.17.0
- [Feature Request] NPM package of importers
- Can't rename request from Bruno Windows on WSL `.bru` files
- Minor update needed in the French translation
- Error invoking remote method 'send-http-request': TypeError [ERR_INVALID_CHAR]: Invalid character in header content ["Authorization"]
- Displaying NDJSON results in a long string response with no actual preview.
- Following doc links to local filesystem causes fatal state HOT 3
- Support relative local image path in markdown for docs.
- Regression: Environment Variables Values Not Working Since v1.18.0 HOT 1
- Cookies per collection
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 bruno.