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

Complete forum installation with exported DB #3

Open
ghost opened this issue Apr 6, 2016 · 3 comments
Open

Complete forum installation with exported DB #3

ghost opened this issue Apr 6, 2016 · 3 comments

Comments

@ghost
Copy link

ghost commented Apr 6, 2016

Right now, there are only the smileys and the custom theme in the git repo. One has to download the same version of SMF (easy) and make the initial installation of the forum software (not so easy to end up with a system that is exactly the same). One has to download and activate the same set of packages to match the system that is supposed to run the custom theme.

Maybe we could upload the whole forum as it is now installed on the live system. Complete with the directories Sources and Packages, including some files in avatars and attachments so that there is some content to test the forum with. The directory cache should be empty.

At the root of the Git repo should be a text file with the database in form of SQL statements. (SQL export) It should just contain the structure of the board and some postings with attachments and karma, so that everything can be tested. There are two ways to get such a file:

  1. Export the live database and strip anything unneeded: Any personal messages and their attachments, accounts and their passwords and postings after a certain date (it would be sufficient to have the postings before the announcement).
  2. Make a fresh local installation, recreate the board structure and create some standard test accounts and some postings with karma.

I think it's easier to go with a copy of the live system. I can do the "cleaning" of the live database export.

With a complete install in the repo and the sample database, it is possible to just clone the repo, execute the database import and be done. Now everyone is having an identical system to develop features on. Changes to files that are done with the forum software itself (package manager for example) are still doable. If a package is desirable, it should be installed and committed like normal, except that a new database export has to be done if the package touches the database.

What do you think?

@toger5
Copy link
Owner

toger5 commented Apr 6, 2016

Yes maybe that is what we should do.
I had this setup before but I didn't want to use it anymore because I thought the db shouldn't be online and It is less confusion without the whole forum.
(but i forgot packages)
Maybe I will do that later on. But currently I have no time.
But I think you got your local version and Kiori sün and I also do. So for now we are fine I guess.

@ghost
Copy link
Author

ghost commented Apr 6, 2016

You are right, the live db shouldn't be online. If you want, you can just send me the zipped up root of the forum and the db export. I don't know how you can access the db on the hosted server (maybe phpMyAdmin?), but it should be easy to get a export of the db. I would take care of stripping the db off private data.

But we are mostly fine for now, that's right. It's not high priority. :)

@toger5
Copy link
Owner

toger5 commented Apr 6, 2016

Yes configuring the db is very easy (phpMyAdmin and some sql...) so that should be no problem.
And we may consider uploading the whole folder on git.
So this might be the approach we will take sooner or later It depends how many people are willing to help ;)

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

No branches or pull requests

1 participant