- Clone this repository:
https://github.com/cdvr1993/IyE.git
- Install the virtual environment dependencies:
- On Ubuntu:
sudo apt-get install python-pip python-dev build-essential
sudo pip install --upgrade pip
sudo pip install --upgrade virtualenv
- On Archlinux:
sudo pacman -S python-virtualenv
- Inside the project's directory, run the following to create the virtual environment:
virtualenv .venv
- Activate the virtual environment:
. .venv/bin/activate
- Install the project's dependencies:
pip install -r requirements.txt
- First you need to create a new project using the "Do it Yourself" cartridge.
- Then you need to install python 3.
wget http://www.python.org/ftp/python/3.3.5/Python-3.3.5.tar.xz
tar xJf ./Python-3.3.5.tar.xz
cd ./Python-3.3.5
./configure --prefix={INSTALL_PATH}
make && sudo make install
- Then copy the manage.py file to a new onew named "manage_openshift.py".
- Then edit the listen line (the "DIY" is the project's name):
server.listen(os.environ['OPENSHIFT_DIY_PORT'], os.environ['OPENSHIFT_DIY_IP'])
- Finally you need to edit the start and stop scripts under "{REPO_DIR}/.openshift/action_hooks":
- Start
#!/bin/bash
nohup ${OPENSHIFT_REPO_DIR}/diy/IyE/manage_openshift.py > ${OPENSHIFT_DIY_LOG_DIR}/iye.log 2>&1 &
- Stop
#!/bin/bash
kill `ps -ef | grep manage | grep -v grep | awk '{ print $2 }'` > /dev/null 2>&1
exit 0