staging

Wordpress staging environment

邮差的信 提交于 2019-12-05 05:35:35
I work for a company that does sites for the pharma industry and we often need to get legal approval before we push any changes live. So, I'd like to migrate a lot of our work to a CMS environment, specifically wordpress but we need the ability to have a staging environment. Is it possible to instead of publishing a page have it publish to a staging environment that someone can browse as with a link as a site. So basically have 2 sites, one staging one live? Generally speaking the above "answers" are correct, there are alternatives to wordpress that have better built-in support for staging

staging and live app with capistrano

老子叫甜甜 提交于 2019-12-04 07:40:24
I thought I'd do a simple yet potentially very useful thing, and create another symlink called live, that points to an arbitrary release, and leave current at the head where it usually is: 20120519235508 20120521004833 20120521024312 <-- live 20120521025150 20120521030449 <-- current I then configured www.mysite.com to hit live/public and stage.mysite.com to hit current/public Unfortunately both hosts seem to run the same app, and not 2 different apps. I've confirmed the httpd.conf has the correct settings and restarted it. However no change, they're both still running the same app, the app

Best/Better/Optimal way to setup a Staging/Development server

和自甴很熟 提交于 2019-12-03 15:57:19
I recently launched a service, meaning I can no longer work directly on the site, or I do so at a risk. I haven't been able to find any "standard" or "best" way to make a development server. The two things I have seen are a) Using a GIT or SVN to host the data (this doesn't quite solve my problem, I need to be able to develop somewhere, preferably not my home computer) b) Capistrano (for Rails, is there something for PHP?) The current solution I'm looking at is putting a complete copy of the server on "development.domain.com", which would then allow me to work on everything, and I can simply

How do I only commit specific lines using SmartGit/Hg

回眸只為那壹抹淺笑 提交于 2019-12-03 12:36:44
问题 I'm using SmartGit/Hg. I edited some files working on two separate new features. Now as I finished working on Feature A , I want to commit my work, but I can't just commit all my edited files, as they contain changes of Feature B , which I do not want to commit just now. 回答1: You can achieve that using the stage command. First of all, stage all the files containing changes to be committed. In this example, all the files except the one called DoNotCommit.php contain at least one line we want

How can you git add a new file without staging it?

断了今生、忘了曾经 提交于 2019-12-03 08:06:35
问题 To use git effectively (and as intended) I make small atomic commits, while I do have longer sessions where I do change not only one thing. Thus, I make heavy use of git add -p . This doesn't work for completely new files, though, because I tend to forget them later on. What I want to do is, tell git that there is a new file, I want it to track, but not stage it : Example: Running git status produces: # On branch my-current-branch # Your branch is ahead of 'origin/my-current-branch' by 2

clearing rails app database on heroku production site

旧巷老猫 提交于 2019-12-03 01:43:33
问题 So I'm new to ROR and Heroku and need a little help. I've created an app and have deployed it; however, I'd like to clear out the database associated with it. Meaning I'd like to clear any users (and their attached data) that have been created thus far. I've basically created several phony accounts to test out whether the database on the production site works, but now i'd like to clear this out, and start with a fresh database. Is this possible without deleting the database entirely? Any help

Git production/staging server workflow

余生颓废 提交于 2019-12-03 00:02:39
问题 Currently my website (production server) already have a lot of code in it. And now I want to start using Git for my projects and setup a staging server for my team. Can anybody give me any advise? Here is the picture in my mind: Production - Production server which already have codes ↑ Staging - New staging server, will install Trac too ↗↙ ↖↘ Developer1 Developer2 - Local development My question is, how should I start? Here are some steps in my mind: do a git init in production server (is

How can you git add a new file without staging it?

一曲冷凌霜 提交于 2019-12-02 21:40:00
To use git effectively (and as intended) I make small atomic commits, while I do have longer sessions where I do change not only one thing. Thus, I make heavy use of git add -p . This doesn't work for completely new files, though, because I tend to forget them later on. What I want to do is, tell git that there is a new file, I want it to track, but not stage it : Example: Running git status produces: # On branch my-current-branch # Your branch is ahead of 'origin/my-current-branch' by 2 commits. # # Changes to be committed: # <<STAGED SECTION>> // A # # Changes not staged for commit: # (use

clearing rails app database on heroku production site

有些话、适合烂在心里 提交于 2019-12-02 16:56:33
So I'm new to ROR and Heroku and need a little help. I've created an app and have deployed it; however, I'd like to clear out the database associated with it. Meaning I'd like to clear any users (and their attached data) that have been created thus far. I've basically created several phony accounts to test out whether the database on the production site works, but now i'd like to clear this out, and start with a fresh database. Is this possible without deleting the database entirely? Any help would be sincerely appreciated. Thank you very much for your time! You can use heroku pg:reset

Git production/staging server workflow

爱⌒轻易说出口 提交于 2019-12-02 13:49:33
Currently my website (production server) already have a lot of code in it. And now I want to start using Git for my projects and setup a staging server for my team. Can anybody give me any advise? Here is the picture in my mind: Production - Production server which already have codes ↑ Staging - New staging server, will install Trac too ↗↙ ↖↘ Developer1 Developer2 - Local development My question is, how should I start? Here are some steps in my mind: do a git init in production server (is this safe?) clone the repo from production to staging server developers clone the repo from the staging to