-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New developer guide #1480
Comments
Some draft:
|
Here's a gist of the instructions I had: https://gist.github.com/spasovski/3d70f7ddb17457df1c51ad308aa8b921 |
Please make note of node version needing to be at least v4 for things to work and you should connect via @spasovski that does work now, bower is no longer used and webpack is used. |
Had to export my variables from Might be useful to specify But still getting issues with the database:
It seems I can't save any data sources. I'm getting a 200 POSTing a data_source, but it's not being persisted:
|
I'm not sure of exact context you're referring to, but in Flask it's not hard to support both. I have an app where it has dev-level defaults hardcoded, which can be overridden by a config file, which in turn is overridden by env vars (highest priority). I can dig up the sample code if needed |
As a backend/python guy, the stuff I am least familiar with is getting the webpack stuff going... the db stuff, docker, python venv etc is pretty straightforward and well documented. The app-specific stuff of course has to be documented, like populating the DB etc. I am unlikely to touch front-end code much, but I do need to run the app to verify that backend changes I make propagate correctly to the browser. So all I really need on the front-end side is "Here's how to run enough webpack to get the app going with auto-reload and here's links to webpack docs if you want to learn more"... |
I've had no issues with webpack. I can get the current master branch running, but get a ton of errors when I go to save things to the database. I'm not sure what I've done wrong, as if I save stuff via the CLI it's fine. For webpack:
|
@rockwotj all the errors like the one you posted above or there are different ones?
@jeffwidman auto-reload for webpack or Flask? |
Yes, please. :) |
@arikfr yes they are similar. I got a different one trying to save queries when I added the data source via the CLI. Googling it some something about trying to save an id or int when it expected a model object. I'll try and get the stack trace tonight. |
@arikfr that works thanks! However it seems the results aren't showing and I can't create a dashboard, but I'll look into that. |
why do we need a dedicated redash vagrant box and do not use just a default one e.g. ubuntu? i've prepared such a configuration change in this branch and it seems to work fine. just fire up the vagrant box and start webpack and the python app: i've tested it only running vagrant on a windows host with oracle virtualbox. |
@stefanseifert the main reason was that the Vagrant setup requires many dependencies -- Node.JS, PostgreSQL, Redis and many pip packages (along with system packages). It takes a long time and prone to failures (network failures, temporary missing stuff, etc). So it felt like creating a dedicated box is a good solution for this. In retrospective, the box itself became a point of failure :-\ This is why I have more faith in a Docker based workflow (where the image is easier to update). I'm just not sure it's comfortable/familiar enough to others. |
First draft of the guide: |
Related: #1530 (Docker based workflow) |
@uptonking are you sure you're using a recent master branch? |
@arikfr thanks, I used the "1.0.0 - RC". After git clone the master, "npm run start" works.
|
Did you install updated pip packages? |
@arikfr after using virtualenv and pip install again, all the commands in the new dev guide works fine. |
To create the tables you need to run:
|
The developer guide has been updated along with new documentation on how to use Docker for easy setup of your dev environment. https://redash.io/help-onpremise/dev/guide.html Thank you for all your feedback! |
Our current developer guide consists of instructions to use a Vagrant box, that seems to be broken by now :-( (well it was created 2 years ago)
I want to create new guide that documents:
Vagrant has the advantage of being a full VM, while Docker has the advantage of being more lightweight and inline with our future production deployments.
Topics to document:
The text was updated successfully, but these errors were encountered: