Skip to content
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

Add support for pushing the database #13

Closed
chasegiunta opened this issue Mar 12, 2019 · 8 comments
Closed

Add support for pushing the database #13

chasegiunta opened this issue Mar 12, 2019 · 8 comments
Assignees
Labels
enhancement New feature or request

Comments

@chasegiunta
Copy link

This would definitely have to be in conjunction with #4, but it would be useful during initial developments of a site to push a local database to a remote environment (99% of the time, a staging server).

Currently, since multi-environments aren't supported, our staging site is configured in swiff, and we're manually uploading the local database to the staging server to let the client see incremental work.

@ben-rogerson ben-rogerson self-assigned this Mar 14, 2019
@ben-rogerson
Copy link
Member

A task that replaces the remote database with your local database is a great feature!
Perhaps it could be triggered with a command like:
swiff --updb or swiff --uploaddb
And those who use the staging as the master database could use the feature to populate the remote for the first time.
Thanks for your request and I'll let you know when it's available 👍

@ben-rogerson ben-rogerson added the enhancement New feature or request label Mar 14, 2019
@chrisrowe
Copy link
Contributor

That'd be swell

@jalendport
Copy link

This seems to be something Good Work really wants judging from who's commented and upvoted so far 😂

@ben-rogerson
Copy link
Member

Don't worry, I'm working on the feature as we speak :)

Here's an idea of the steps Swiff will perform:

  1. SSH into remote
  2. Dump and gzip remote db
  3. Download remote db and store in backups
  4. Dump local db and gzip
  5. Upload db to remote
  6. Import db into remote
  7. Clean up

Hope to have it released soon, I'll let you know.

@ben-rogerson
Copy link
Member

Apologies for the delay on this, there's some issues that surfaced after adding this feature so I'm working through those at the moment. Aiming for next release within a week, should be sweet.

@chasegiunta
Copy link
Author

@ben-rogerson No need to apologize. Appreciate your work! Excited!

@chrisrowe
Copy link
Contributor

Awesome, thanks @ben-rogerson 💓

@ben-rogerson
Copy link
Member

@chasegiunta @chrisrowe Hope you guys had a great easter holiday!

Swiff v1.4.0 was just released 🥳
If you want to give it a whirl: npm install --global swiff
Release notes
Closing this issue for now as the database push task is now available 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants