question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Vagrant - Migrate migrations and load initial data

See original GitHub issue

The vagrant/provsion.sh file appears to be doing everything correctly

# Run syncdb/migrate/load_initial_data/update_index
su - vagrant -c "$PYTHON $PROJECT_DIR/manage.py migrate --noinput && \
                 $PYTHON $PROJECT_DIR/manage.py load_initial_data && \
                 $PYTHON $PROJECT_DIR/manage.py update_index"

But none of those commands are being run in the initial vagrant up command nor if you run a subsequent vagrant provision

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
shackercommented, Feb 11, 2017

There’s lots of work to do on initial data loading - I’ll take care of that. If anything special has to be done for vagrant data loading, please wait until I’ve got it working for the standard instructions.

1reaction
daaraycommented, Feb 11, 2017

Also, just an FYI, the load_initial_data currently only loads bakerydemo.json. At the moment, that only provides 1 superuser and no other content.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Want to run migrations from one Vagrant VM to another using ...
Want to run migrations from one Vagrant VM to another using php artisan migrate ... I have two VMs in vagrant. My app...
Read more >
Using DB migration tools within a Virtual Machine with Vagrant
Use some form of database migration tool (supporting MySQL) to add/edit/remove tables and columns; Push these 'migrations' into a git repo that ...
Read more >
operator migrate - Command | Vault - HashiCorp Developer
The operator migrate command copies data between storage backends to facilitate migrating Vault between configurations. It operates directly at the storage ...
Read more >
Schema migrations — Zulip 7.0-dev+git documentation
git add the new migration file. Run tools/provision to update your local database to apply the migrations. Commit your changes.
Read more >
Heterogeneous Live Migration of Virtual Machines - ipads-sjtu
networked system such as data-center and computing grid can benefit from load balancing, ... Vagrant, a VM migration scheme aiming at migrating vir-....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found