WessexWater / chellow

Web application for checking UK electricity and gas bills
https://www.chellow.org/
6 stars 8 forks source link

Added line to .bashrc to set pg user #5

Closed JuviAndaya closed 8 years ago

JuviAndaya commented 8 years ago

Update instruction to add PGUSER environment variable.

tlocke commented 8 years ago

Hi @JuviAndaya, I think the change is in the wrong section. I think it needs to be added under the section:

=== Detailed Instructions For Installing On CentOS 6.7 64 bit For Development

So where it says:

and add the line:

 export CHELLOW_PORT=8080

you need to add:

 export PGUSER=postgres

Hope that makes sense! To amend your commit, first make the changes to the file, then do:

git commit --amend

Then when you do a git push you'll have to force it with:

git push -f

A note about forced pushes: Never do a forced push on official public repositories (like WessexWater/chellow). This is because people will fork that and an change to the history will invalidate their fork. It's okay on your own personal repository because people won't fork that.

tlocke commented 8 years ago

I think it's still in the wrong section. So the original file reads:

We need to tell Chellow which port to listen on, so:

 vi ~/.bashrc

and add the line:

 export CHELLOW_PORT=8080

Clone the Chellow source from GitHub:

but we need to make it read:

We need to tell Chellow which port to listen on, so:

 vi ~/.bashrc

and add the lines:

 export CHELLOW_PORT=8080
 export PGUSER=postgres

Clone the Chellow source from GitHub: