- The pycharm project name and GitHub repo name for this project are both 'feedback_portal.'
- EC2 Linux: http://10.93.112.44:2113
- Run the flask app as a process that will not close after the ssh terminates
- cd $portal/shell_scripts
- stop any running portal flask apps
- ./stop_with_screen.sh
- launch the flask app
- ./launch_with_screen.sh
- stop any running portal flask apps
- cd $portal/shell_scripts
- Logging directories
- /home/theld/code/git_repos/feedback_portal/logs/
- removing existing log files:
- rm /home/theld/code/git_repos/feedback_portal/logs/*.log
- show contents of the log file:
- Run the flask app as a process that will not close after the ssh terminates
- Laptop (Windows): http://127.0.0.1:2113/
- cd %portal%\source\production\arb"
- flask --app wsgi run --debug --no-reload -p 2113
- cd %portal%\source\production\arb"
- cd to project directory:
- (linux): cd $portal
- (windows): cd %portal%
- list all branches:
- git branch -a
- delete a local branch
- git branch -d branch_name
- git checkout <your_branch>
- git pull
- git push
- git fetch --all --prune
- updates all branches and removes dead local branches git fetch Downloads objects and refs from remote (no merge or rebase) --all Fetches from all remotes (if you have more than origin) --prune Removes stale remote-tracking branches that no longer exist on GitHub
- misc_json only contains "Please Select" when it replaces a previously valid value.
- Navigate to the root path of repos
- windows: "C:\one_drive\code\pycharm"
- ec2: cd "/home/theld/code/git_repos"
- Removing the old git repo (if necessary)
- rm -rf feedback_portal
- Clone the latest portal repo
- ssh to ec2: user theld
- cd code/git_repos/
- git clone https://tony-held-carb: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@github.com/tony-held-carb/feedback_portal --origin github
-
Linux
- portal = "/home/theld/code/git_repos/feedback_portal"
- Usage:
- prepend variables with $.
- For example: cd $portal
- Creation:
- add to .bashrc
- export <variable_name>="<variable_value>"
- export portal="/home/theld/code/git_repos/feedback_portal"
- add to .bashrc
-
Windows
- portal = "C:\one_drive\code\pycharm\feedback_portal"
- Usage:
- enclose with %
- For example: cd %portal%
- Creation:
- Open PowerShell (not Command Prompt): Press Win + S, type "PowerShell", and open it. [System.Environment]::SetEnvironmentVariable("<variable_name>", "<variable_value>", "User") [System.Environment]::SetEnvironmentVariable("portal", "C:\one_drive\code\pycharm\feedback_portal", "User")
- chmod +x /home/theld/code/git_repos/feedback_portal/shell_scripts/*.sh
- remove the old scripts if you are having git pull issues
- rm /home/theld/code/git_repos/feedback_portal/shell_scripts/*.sh
- mini conda docs
- linux installation:
- mkdir -p ~/miniconda3
- wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh
- bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3
- rm ~/miniconda3/miniconda.sh
- For details see: mini_conda_01.yml
- Activate mini_conda environment
- conda deactivate
- conda activate mini_conda_01
- Pushing to GitHub docs
- mkdocs build
- mkdocs gh-deploy --clean
- run local server
- mkdocs serve