phpfog

Can I map local branches to remote branches with different prefixes in git?

…衆ロ難τιáo~ 提交于 2020-02-19 09:42:53
问题 We're working with a semi-centralized git repository here where I work. Each developer has their own subtree in the central git repository, so it looks something like this: master alice/branch1 alice/branch2 bob/branch1 michael/feature release/1.0 release/1.1 Working locally in my tree I have topic/feature , which corresponds to michael/feature in the central tree. I've been using git push origin topic/feature:michael/feature to push my changes to the remote tree. However, this is cumbersome

Php multiple db environment with git & phpfog

放肆的年华 提交于 2019-12-24 09:59:50
问题 I have a plain(no framework) php app. I want to deploy my app to PhpFog. The problem is the config(host,dbname) is different. How to create a db config for development and production environment? 回答1: You could use environment variables to do this. PHPFog provides a way to set environment variables in the App Console > Env. Variables tab for your app. Simply create all the environment variables that you need on both your local machine and on the App Console: Example: Local Machine: Edit your

How do I push files specified in .gitignore?

眉间皱痕 提交于 2019-12-18 16:58:46
问题 If I have a "vendors" directory in my .gitignore, is there a way I can set up a remote that will receive that directory anyway when I do a push? 回答1: I think the functionality you're looking for can be achieved by having a branch used to deploy to your Cloud Provider. Setup a dev branch which includes your .gitignore file, check your incremental work into that branch. Merge your dev branch into your deploy branch which doesn't contain a .gitignore file but contains the vendors directory. once

Looking for PaaS providers recommendations [closed]

好久不见. 提交于 2019-12-17 22:09:22
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . I want to develop our new project using a PaaS provider. I'll be developing primary in PHP, but would like that the service can provide other languages too (and add-ons available too, like MongoDB, Memcached, redis, etc). I've seem some PaaS as PHPfog (and AppFog), dotCloud, orchestra.io, Red Hat's OpenShift,

Unable to retrieve user name through graph api after shifting to another server

﹥>﹥吖頭↗ 提交于 2019-12-13 03:58:57
问题 I am trying retrieve user name from the code through graph api, the below code was working fine when while I was hosting app on another(godaddy) server but recently I moved the application to phpfog and since then am facing this weird problem. try { $userId = $_POST["user_id"]; $oauth_token = $_POST["oauth_token"]; $userName = json_decode(file_get_contents('https://graph.facebook.com/' . $userId)) -> name; $userGender = json_decode(file_get_contents('http://graph.facebook.com/' . $userId)) ->

Can I map local branches to remote branches with different prefixes in git?

不打扰是莪最后的温柔 提交于 2019-12-03 12:21:07
We're working with a semi-centralized git repository here where I work. Each developer has their own subtree in the central git repository, so it looks something like this: master alice/branch1 alice/branch2 bob/branch1 michael/feature release/1.0 release/1.1 Working locally in my tree I have topic/feature , which corresponds to michael/feature in the central tree. I've been using git push origin topic/feature:michael/feature to push my changes to the remote tree. However, this is cumbersome and prone to mistakes (e.g. omitting the developer name, misspelling the feature name, etc.). I'm

How do I push files specified in .gitignore?

浪尽此生 提交于 2019-11-30 14:54:59
If I have a "vendors" directory in my .gitignore, is there a way I can set up a remote that will receive that directory anyway when I do a push? I think the functionality you're looking for can be achieved by having a branch used to deploy to your Cloud Provider. Setup a dev branch which includes your .gitignore file, check your incremental work into that branch. Merge your dev branch into your deploy branch which doesn't contain a .gitignore file but contains the vendors directory. once you've completed your merge, push to the deployment remote from your deploy branch. Your .gitignore file

Looking for PaaS providers recommendations [closed]

和自甴很熟 提交于 2019-11-28 17:15:27
I want to develop our new project using a PaaS provider. I'll be developing primary in PHP, but would like that the service can provide other languages too (and add-ons available too, like MongoDB, Memcached, redis, etc). I've seem some PaaS as PHPfog (and AppFog), dotCloud, orchestra.io, Red Hat's OpenShift, Pagoda Box, among others. Of all of them, I think I like most dotCloud. But wanted to know of any reviews, recommendations and comparisons between some of the big players on PaaS. What would you guys recommend? Here is a series of blog posts that I have put together that compares most of