diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2014-04-09 08:05:51 +0200 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2014-04-09 08:05:51 +0200 |
commit | 7a3a267e0fe50714cbfae702c3834fc227e1dc1f (patch) | |
tree | 360200055fc03beac2d88d0a97dfa00c0e04b1ff | |
parent | Removed initialization script. (diff) | |
download | newspipe-7a3a267e0fe50714cbfae702c3834fc227e1dc1f.tar.gz newspipe-7a3a267e0fe50714cbfae702c3834fc227e1dc1f.tar.bz2 newspipe-7a3a267e0fe50714cbfae702c3834fc227e1dc1f.zip |
Detection if running on Heroku.
-rw-r--r-- | Procfile | 2 | ||||
-rw-r--r-- | README.md | 18 | ||||
-rwxr-xr-x | install.sh | 3 |
3 files changed, 8 insertions, 15 deletions
diff --git a/Procfile b/Procfile new file mode 100644 index 00000000..b684c297 --- /dev/null +++ b/Procfile @@ -0,0 +1,2 @@ +web: python runserver.py +init: python db_create.py
\ No newline at end of file @@ -43,13 +43,10 @@ Deploying the application on Heroku Deploying the application on a traditional server ''''''''''''''''''''''''''''''''''''''''''''''''' -Configuration is done via the file *conf/conf.cfg*. - .. code:: bash $ git clone https://bitbucket.org/cedricbonhomme/pyaggr3g470r.git $ cd pyaggr3g470r - $ cp conf/conf.cfg-sample conf/conf.cfg $ sudo apt-get install postgresql postgresql-server-dev-9.1 postgresql-client $ sudo pip install --upgrade -r requirements.txt $ sudo -u postgres createuser @@ -63,27 +60,18 @@ Configuration is done via the file *conf/conf.cfg*. postgres=# GRANT ALL PRIVILEGES ON DATABASE pyAggr3g470r TO username; postgres=# \q $ export DATABASE_URL="postgres://username:password@127.0.0.1:5432/pyAggr3g470r" + $ cp conf/conf.cfg-sample conf/conf.cfg $ python db_create.py $ python runserver.py * Running on http://0.0.0.0:5000/ * Restarting with reloader - -Launch the script ``install.sh`` in order to install automatically all requirements. -In order to prevent all dependencies problems and to keep your system stable, the libraries will be -installed in a Python virtual environment (with [virtualenv](http://www.virtualenv.org)). -The installation will use the configuration file for the database setup. - -Then point your browser to the address [http://127.0.0.1:5000/](http://127.0.0.1:5000/) and login with the email address -*firstname.lastname@mail.com* and the password *secret*. You can update your profile at the -address [http://127.0.0.1:5000/profile/](http://127.0.0.1:5000/profile/). - -As already said, you can configure pyAggr3g470r (database name, proxy, user agent, etc.) in the file *conf/conf.cfg*. +Configuration (email, proxy, user agent, etc.) is done via the file *conf/conf.cfg*. For example if you want to use pyAggr3g470r with Tor/Privoxy, you just have to set the value of *http_proxy* (most of the time: ``http_proxy = 127.0.0.1:8118``). Else leave the value blank. -However, the default configuration should be good, so you really just have to run the script *install.sh*. +You can connect with the email *root@pyAggr3g470r.localhost* and the password *root*. You should change these information. Automatic updates @@ -2,6 +2,9 @@ # Installation of PostgreSQL sudo apt-get install postgresql postgresql-server-dev-9.1 postgresql-client +#sudo -u postgres createuser +#createdb pyAggr3g470r +#sudo -u postgres psql # Python dependencies sudo apt-get install -y python-pip |