vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   question about dev site (https://vborg.vbsupport.ru/showthread.php?t=299657)

iPenguin02 06-29-2013 11:35 PM

question about dev site
 
How do i properly set up a main site and a dev site? Should they be using the same database? How do i be logged into both at the same time?

Here's my current set up
domain.com
sql: domainmain
cookie prefix: dom

dev.domain.com
sq: domaindev
cookie prefix: ddev

What should i set the cookie domain and folder to in the setting of both sites? or should i start over using the same sql server?

anyone have any other tips?

mathforum 06-30-2013 12:41 AM

I run dev version of my site. The way I did it was my host essentially copy/pasted all the files, folders and database for my forum to the dev site. You can save the cookies into the the same folder as long as you have different prefixes. Be careful to immediately change the config.php file for the dev site and change the cookie prefix before accessing anything on the dev site, otherwise you will run into weird cookie problems. This happened to me and I was accessing both sites at random off and on, plus couldn't log into the AdminCP. So just take care of that first and you should be good to go with the settings you posted.

iPenguin02 06-30-2013 06:45 AM

just for clarification - I should use the same database, using the same cookie domain and same cookie folder, but setting the prefix in the config file to something diff than the other?

mathforum 07-12-2013 05:12 AM

Different database, different prefix. You can use the same cookie domain if you want or not. I use the same one without any problems. Since the prefixes are different there won't be any mixups.


All times are GMT. The time now is 04:49 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00917 seconds
  • Memory Usage 1,708KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete