mirror of
https://github.com/getredash/redash.git
synced 2025-12-21 10:25:33 -05:00
1. Ability to take target value from different row. 2. Ability to clear target column name. 3. Use explicit default configuration values instead of "magic" defaults.
52 lines
2.6 KiB
ReStructuredText
52 lines
2.6 KiB
ReStructuredText
Setting up development environment (using Vagrant)
|
|
==================================================
|
|
|
|
To simplify contribution there is a `Vagrant
|
|
box <https://vagrantcloud.com/redash/boxes/dev>`__ available with all
|
|
the needed software to run re:dash for development (use it only for
|
|
development, for demo purposes there is
|
|
`redash/demo <https://vagrantcloud.com/redash/boxes/demo>`__ box and the
|
|
AWS/GCE images).
|
|
|
|
To get started with this box:
|
|
|
|
1. Make sure you have recent version of
|
|
`Vagrant <https://www.vagrantup.com/>`__ installed.
|
|
2. Clone the re:dash repository:
|
|
``git clone https://github.com/EverythingMe/redash.git``.
|
|
3. Change dir into the repository (``cd redash``) and run run
|
|
``vagrant up``. This might take some time the first time you run it,
|
|
as it downloads the Vagrant virtual box.
|
|
4. Once Vagrant is ready, ssh into the instance (``vagrant ssh``), and
|
|
change dir to ``/opt/redash/current`` -- this is where your local
|
|
repository copy synced to.
|
|
5. Copy ``.env`` file into this directory (``cp ../.env ./``).
|
|
6. From ``/opt/redash/current/rd_ui`` run ``bower install`` to install
|
|
frontend packages. This can be done from your host machine as well,
|
|
if you have bower installed.
|
|
7. Go back to ``/opt/redash/current`` and install python dependencies
|
|
``sudo pip install -r requirements.txt``
|
|
8. Apply migrations
|
|
|
|
::
|
|
|
|
PYTHONPATH=. bin/run python migrations/0001_allow_delete_query.py
|
|
PYTHONPATH=. bin/run python migrations/0002_fix_timestamp_fields.py
|
|
PYTHONPATH=. bin/run python migrations/0003_update_data_source_config.py
|
|
PYTHONPATH=. bin/run python migrations/0004_allow_null_in_event_user.py
|
|
PYTHONPATH=. bin/run python migrations/0005_add_updated_at.py
|
|
PYTHONPATH=. bin/run python migrations/0006_queries_last_edit_by.py
|
|
PYTHONPATH=. bin/run python migrations/0007_add_schedule_to_queries.py
|
|
PYTHONPATH=. bin/run python migrations/0008_make_ds_name_unique.py
|
|
PYTHONPATH=. bin/run python migrations/0009_add_api_key_to_user.py
|
|
PYTHONPATH=. bin/run python migrations/0010_create_alerts.py
|
|
PYTHONPATH=. bin/run python migrations/0010_allow_deleting_datasources.py
|
|
PYTHONPATH=. bin/run python migrations/0011_migrate_bigquery_to_json.py
|
|
PYTHONPATH=. bin/run python migrations/0012_add_list_users_permission.py
|
|
PYTHONPATH=. bin/run python migrations/0013_update_counter_options.py
|
|
|
|
9. Start the server and background workers with
|
|
``bin/run honcho start -f Procfile.dev``.
|
|
10. Now the server should be available on your host on port 9001 and you
|
|
can login with username admin and password admin.
|