Skip to content

Commit

Permalink
FF-275 #comment Fixed small codacy complaint. Also added a small bit …
Browse files Browse the repository at this point in the history
…to beanstalk-deployment doc.
  • Loading branch information
Carl Vitzthum committed Oct 11, 2016
1 parent 80c94cb commit 9719a88
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
6 changes: 2 additions & 4 deletions docs/beanstalk-deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ When that happens we need to drop the database and recreate it, so the inserts c

Easiest way to do that is to ssh into the beanstalk instance and do the follow:

** Note ** to ssh in first `pip install awsebcli` then follow the setup instructions. With that installed you can simply type eb ssh (ensuring that the master branch is checked out).
** Note ** to ssh in first `pip install awsebcli` then follow the setup instructions. With that installed you can simply type eb ssh (ensuring that the master branch is checked out). (If this doesn't work, try `eb init` before `eb ssh`)

Once conneted do the following:

Expand All @@ -49,13 +49,11 @@ sudo shutdown -r now

## Database backup / restore

Database snapshots are automatically taken every day. To restore a backup on production (4dnweb-prod)
Database snapshots are automatically taken every day. To restore a backup on production (4dnweb-prod)
1. Go to the RDS tab and then look at the snapshots page.
2. Select the backup you want to restore.
3. Click Restore Snapshot
4. You will be prompted for a DB Instance Name, name it what you like.
5. Go to 4dnweb-prod environment and select configuration -> software configuration
6. Change the enviornment variable bnSTaLk_HOSTNAME to the name you just used for the new database.
7. Redeploy the applicaition production.


14 changes: 7 additions & 7 deletions src/encoded/static/components/browse.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,15 @@ var ExperimentSet = module.exports.ExperimentSet = React.createClass({
var completeExpts = this.state.completeExpts;
var selectedExpts = this.state.selectedExpts;
var emptyExpts = this.state.emptyExpts;
for (var i=0; i<failExperiments.length; i++){
if(completeExpts.has(failExperiments[i])){
completeExpts.delete(failExperiments[i]);
for (var j=0; j<failExperiments.length; j++){
if(completeExpts.has(failExperiments[j])){
completeExpts.delete(failExperiments[j]);
}
if(selectedExpts.has(failExperiments[i])){
selectedExpts.delete(failExperiments[i]);
if(selectedExpts.has(failExperiments[j])){
selectedExpts.delete(failExperiments[j]);
}
if(emptyExpts.has(failExperiments[i])){
emptyExpts.delete(failExperiments[i]);
if(emptyExpts.has(failExperiments[j])){
emptyExpts.delete(failExperiments[j]);
}
}
var checked = completeExpts.size === childExperiments.length || childExperiments.length === this.state.emptyExpts.size;
Expand Down

0 comments on commit 9719a88

Please sign in to comment.