Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Working on local server and upload to website
Mowgli76
New
Hi
I usually work on a local server setup
When I'm done, I upload changed files to my online website
The problem with that, when uploading to the website, is that the Vanilla config files etc. gets overwritten too and now no longer matches the online forum/server/db setup
How do you go about this?
And if I change a lot of dashboard settings.. which files or database tables/rows/fields should I re-upload?
0
Comments
Config settings are almost exclusively saved in conf/config.php
I would not recommend cherry picking tables to update, e.g. when you edit permissions.
Categories, users and permissions are saved in the database, everything else you can edit through the dashboard is saved in config.php
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
Ok But how to handle 2 separate config files.. Do you know?
I don't really understand your question.
Do you want to split the config file in multiple files?
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
Local server has one config file:
Online website has a different config file (obviously, because the environment is not the same):
What happens when you upload all your local files, including config files? > The online website would display debugging info (baad) and simply not work
Put the database information and debug line into something like config.env.php
Create a php file bootstrap.early.php
put it in the conf directory, too
This will only work for values that you don't change through the dashboard (like debug or db info), the forum will always write to config.php
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
@Mowgli76
Why not just change your local user and p/w details to reflect your online one, and leave debug set to false until you need it?
Bleistivt, Ok maybe I will try that, thanks
whu606, well that could be a good solution. If I can change it all. But then there is still the 2 different settings for debugging
This actually takes precedence over the config.php, so I'd recommend leaving the config of your production site the way it is and add this only to your dev environment.
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
@Mowgli76
I'm not sure how often you make changes, but I can't see changing 'true' to 'false' in the debug line as being that onerous!
For the DB, you can create a new user in phpMyAdmin to match your online one, and copy your DB and give it the name of your live DB.
Personally, I use a local install to test ideas/edits, and a copy of my live install on my webserver for changes I want to see in my production site.
For websites that I test locally and deploy via git, I don't track the config file at all. Sure, I have to propagate configuration changes, but how often does that need to be done?
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.