dynamicweb/INSTALLATION.rst

91 lines
2.2 KiB
ReStructuredText
Raw Permalink Normal View History

2016-04-10 02:20:15 +00:00
Dynamicweb
2016-04-10 01:42:26 +00:00
----------
Installation for dynamicweb
=======
Requirements
============
* Python 3.5+
Install
=======
2019-12-10 17:53:50 +00:00
.. note::
lxml that is one of the dependency of dynamicweb couldn't
get build on Python 3.7 so, please use Python 3.5.
First install packages from requirements.archlinux.txt or
requirements.debian.txt based on your distribution.
2016-04-10 01:47:17 +00:00
The quick way:
2016-04-10 02:20:15 +00:00
``pip install -r requirements.txt``
2016-04-10 01:42:26 +00:00
Next find the dump.db file on stagging server. Path for the file is under the base application folder.
2019-12-10 17:53:50 +00:00
or you can create one for yourself by running the following commands on dynamicweb server
.. code:: sh
sudo su - postgres
pg_dump app > /tmp/postgres_db.bak
exit
cp /tmp/postgres_db.bak /root/postgres_db.bak
Now, you can download this using sftp.
2016-04-10 01:42:26 +00:00
Install the postgresql server and import the database::
2019-12-10 17:53:50 +00:00
``psql -d app -U root < dump.db``
2016-04-10 02:20:15 +00:00
**No migration is needed after a clean install, and You are ready to start developing.**
2016-04-10 01:42:26 +00:00
Development
===========
2016-04-10 02:20:15 +00:00
Project is separated in master branch and development branch, and feature branches.
Master branch is currently used on `Digital Glarus <https://digitalglarus.ungleich.ch/en-us/digitalglarus/>`_ and `Ungleich blog <https://digitalglarus.ungleich.ch/en-us/blog/>`_.
2019-12-10 17:53:50 +00:00
If You are starting to create a new feature fork the github `repo <https://github.com/ungleich/dynamicweb>`_ and branch the development branch.
2016-04-10 02:20:15 +00:00
2019-12-10 17:53:50 +00:00
After You have completed the task, create a pull request and ask someone to review the code from other developers.
2016-04-10 02:20:15 +00:00
**Cheat sheet for branching and forking**:
*branching*
``git branch feature_name && git checkout feature_name``
*fetching upstream(should be done everytime before development is started)*
``git fetch upstream && git merge upstream/feature_name``
`read more about getting code from upstream here <https://help.github.com/articles/syncing-a-fork/>`_
2016-05-04 18:11:15 +00:00
*merging your branch*
2016-05-04 18:13:31 +00:00
(**IMPORTANT**)
2016-05-04 18:12:58 +00:00
2016-05-04 18:11:15 +00:00
Before You make a pull request from Your forked branch to the ungleich make sure You did merge and resolve any conflicts You may find and that the application is running bug free.
Also You can run
``./manage test``
2016-05-04 18:12:58 +00:00
2016-05-04 18:11:15 +00:00
To merge upstream branch run this git commands.
``git fetch upstream``
2016-05-04 18:12:58 +00:00
2016-05-04 18:11:15 +00:00
``git checkout your_feature_branch``
2016-05-04 18:12:58 +00:00
2016-05-04 18:11:15 +00:00
``git merge remotes/upstream/develop``
2016-04-10 02:20:15 +00:00
2016-04-10 01:42:26 +00:00