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

  • SEARCH
  • Home
  • 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 8357057
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T10:21:57+00:00 2026-06-09T10:21:57+00:00

I am working with phpfog. I use git to push my code to phpfog.

  • 0

I am working with phpfog.
I use git to push my code to phpfog.
My problem:
I have config-passwords.txt with my local passwords and user names, i have other passwords and user names in production.
Usually i upload manually to server the configs files and then change them, but i dont see that phpfog gives such option.What should I do?

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-06-09T10:21:58+00:00Added an answer on June 9, 2026 at 10:21 am

    One way to allow for different settings or passwords between your development and production environments is to use environment variables. PHP Fog allows you to configure custom environment variables in the app console. You would then set the same envars on your dev system.

    Example:

    Local Machine: Edit your .bash_profile or export the following line.

    CONFIG_PASSWORD=devpassword1
    

    In the PHP Fog App Console set the following environment var:

    CONFIG_PASSWORD=prodpassword1
    

    Then access them from your php app:

    $config_password = getenv("CONFIG_PASSWORD");
    

    Add as many different env vars as you need. This way of accessing the password will work the same in both dev and production environments so your code does not need to change.

    See my answer to a similar question: https://stackoverflow.com/a/8786086/78685

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

Sidebar

Related Questions

Working on a console application using Delphi 7, and have run into a problem.
working on an old translation sample code for windows phone 7. Recently, I have
Working on a project with git, I have two feature branches, call them dev-a
Working in iOS 5 I have read a list of file names from my
Working with Reporting Services 2008 r2. So here's my issue: We have 5 reports
Working on calling a C function from my asm project. I'm trying to push
Working on an extension that use the new experimental devtools apis. How do you
Working with a Lucene index, I have a standard document format that looks something
Working with Json, how can I NSlog only the title in this code: NSDictionary
Working in Java: I have a JFrame class, and separate classes for my two

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.