Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 334503
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T10:03:36+00:00 2026-05-12T10:03:36+00:00

I am currently in the process of learning the CodeIgniter PHP framework. At the

  • 0

I am currently in the process of learning the CodeIgniter PHP framework. At the current moment, I am looking to have a DEV environment and a PRODUCTION environment. Coming from a purely C and JAVA background, I am used to having everything locally (with version control), but since I will have the PRODUCTION side on a website, I was wondering a couple of different things:

  1. Is it better to keep the DEV environment locally?
  2. What would be a good (and easy) way when making changes on the DEV side to get them up to the PRODUCTION side (assuming the DEV env is local)?
  3. Is it possible (and if so, how?) to setup CodeIgniter to have a DEV & PROD environment in the same codespace (say on the server but with different databases tables)?
  4. When using Version Control on an application I would create in the Framework, is it recommended to only have the files I create for my application, or add the whole Framework (to keep the code consistent with version of the Framework)?

I appreciate any thoughts or suggestions you have in advance.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T10:03:37+00:00Added an answer on May 12, 2026 at 10:03 am

    I don’t use CodeIgniter, so I may not be able to answer all your questions ; but, still, here a few pointers :

    • Development environment : I like when each developper has it’s own environment ; and it’s generally easier / faster when it’s on his machine
      • still, if your development machines are running windows, and you production server will be running Linux, it could bring some problems (there are a few differences between those two, like case-sensitivity in files names)
      • in this case, provided you have a powerful enough computer, using VMWare or VirtualBox to run a minimalist Virtual Machine (with Linux+Apache+PHP+MySQL on it ; the code source is on it too, exported via a samba share) might be a good solution — that’s what I’ve been doing few more than half a year, and it works pretty well
    • Pushing changes from dev to prod :
      • one solution is to log on the production server and do an “svn update” ; but I don’t really like that (if some files have been modified directly on the production server — yes, this sometimes happens), you may encounter conflicts and the like ; and that’s definitly not fun at all, as it may break the site ^^
      • one solutioon I like more (takes more time to deploy, but if you deploy only, say, once a week, it’s quite OK — and definitly more secure) is to use “svn export” on one of the dev machines, create a tar/zip/whatever archive, and upload it to the prod server. Then, you extract it to a NEW directory ; and when it’s done, you change a symbolic link to point your root directory to that new directory. Nice thing is : you keep the old sources on the production server, and if there’s a catastrophic problem with what you deployed, you just have one symbolic link to change back to revert to the previous version — and that can sometime save the day ^^
      • oh, and, as a sidenote : you should write a script to do that automatically for you : it will avoid messing with ine step one day, when doing it manually (and will help for the day when the guy that always does that is in holidays ^^ )
    • About using one instance of the sources for both environments : even if you plan on doing this only for the framework, I wouldn’t recommend it :
      • it means having dev and prod on the same machine, which is bad : what if some still in development script becomes mad and does bad things ? What if one developpers types some kinf of “rm -Rf” in the wrong directory ?
      • you thought about different databases tables (I’d rather go with different databases ; with different users, to avoid anyone doing any bad request on the wrong database !), but that’s not the only thing : what about temporary files ? cache, for instance ?
      • I’d really prefer having to fully separated instances ; even if it means have the sources / the framework twice on the machine — and I’d really really recommend having two different machines !
    • About having the framework on SVN :
      • The more things you have on SVN, the easiest it is to get a new development environment set up : ideally, just one “svn checkout”, and there’s a new environment ready for the new developper who just joined your team ; coupled with a Virtal Machine you can give him (copied from another’s machine), you can have developpers ready to work on your project in a couple of dozen minutes — which is nice 😉
      • Still, having the Framework in SVN is a PITA to update it : you have to delete it, replace it, re-commit it, …
      • Using svn:externals (if you can — depends on your setup / your framework), pointing to the framework’s SVN server itself, might be a good thing to always be up to date (don’t necessarily point to HEAD ; using a tag or a branch might be good enough for you).

    Hope these few notes help…

    Have fun !

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 222k
  • Answers 222k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer For the example given, two simple changes will suffice: foreach($_SESSION['cart']… May 13, 2026 at 12:19 am
  • Editorial Team
    Editorial Team added an answer Sounds like Pinax would be a great fit for you.… May 13, 2026 at 12:19 am
  • Editorial Team
    Editorial Team added an answer You've basically got it: You can do this: SELECT *… May 13, 2026 at 12:19 am

Related Questions

I am currently in the process of learning Ruby on Rails. I have been
I'm currently in the process of learning ASP MVC and am running into a
I am currently in the process of designing myself a database driven website. The
Please advise. I am a lawyer, I work in the field of Law Informatics.

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.