Skip to content

Creating development and production environments (step by step) #164

@evereux

Description

@evereux

Development and production environments.

How to make seperate environments for project and development purposes.

The base folder in your home directory. Please replace ~ with
path you wish to use.

cd ~
mkdir pycatia-projects
cd .\pycatia-projects\

github (development)

cd .\pycatia-projects\
# deactivate any virtualenv if active
deactivate
# clone the github repo
git clone https://github.com/evereux/pycatia.git pycatia-git
cd pycatia-git
python -m virtualenv env
.\env\Scripts\activate
pip install -r .\requirements\requirements.txt

pypi (production)

# deactivate any virtualenv if active
deactivate
cd ~\pycatia-projects\
# first we'll create the project that uses pycatia from pypi
mkdir pycatia-pypi
cd .\pycatia-pypi\
# install and activate the virtualenv
python -m virtualenv env
.\env\Scripts\activate
pip install pycatia

Resultant folder structure:

Screenshot 2023-10-11 154250

Each environment (pycatia-git, pycatia-pypi) should be opened
independently with their respective virtualenvs activated within your IDE.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions