Skip to content
Snippets Groups Projects
Commit abbfe53f authored by Mitchell Moore's avatar Mitchell Moore
Browse files

Update readme

parent 691c8ec1
No related branches found
No related tags found
No related merge requests found
......@@ -7,15 +7,17 @@ git clone https://gitlab.rc.uab.edu/mmoo97/flask_user_reg.git
```
## Prerequisites
- Ensure `pip` is installed (see: https://packaging.python.org/guides/installing-using-pip-and-virtualenv/ )
- Install Flask using the `pip` command. Note, to install flask in your own `$HOME` use `pip install --user Flask`
```
pip install Flask
- Ensure `pip` is installed (see: https://packaging.python.org/guides/installing-using-pip-and-virtualenv/ ).
- Ensure you have created a virtual environment called `venv` setup within the cloned project.
- Install Flask and other dependencies using the following:
```
pip intall -p requirements.txt
```
- Note, to install flask in your own `$HOME` use `pip install --user Flask`.
## Starting the virtual machine for Flask
- Change to the `formWork` directory
- Change to the `flask_user_reg` directory.
- then start virtual machine:
```
source venv/bin/activate
......
......@@ -16,6 +16,7 @@ def create_app(config_name):
app = Flask(__name__)
Bootstrap(app)
global return_url
return_url = ''
......@@ -24,6 +25,7 @@ def create_app(config_name):
global return_url
print(username, name, return_url, file=sys.stdout)
# Deliver arguments to script.
tempString = 'ssh ohpc sudo /opt/ohpc_user_create/user_create' + username + ' \"' + name + '\"'
print(tempString, file=sys.stdout)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment