c3f680d3c9
updated django.manage so that if working dir is false, then the second section only gets executed under the elese, whereas if working dir was true, the second section got executed anyway
2023-08-10 22:46:14 +03:00
6afd1ee99b
updated the database module to have better documentation
2023-07-20 14:49:03 +03:00
66c85782e8
modified utils.print_console so that it can have an exit option and give an exit code, also modified database.generate so that it can selectively generate one of the scripts if chosen, has better docutils and also prints a help message when asked
2023-07-20 13:10:28 +03:00
9b73b9653d
updated django.edit so taht if coverage is not being used for this project/branch, it won't throw an error looking for it
2023-07-17 09:05:20 +03:00
4bd33473f3
fixed a problem where I was importing modules.utils outside of a try block that would allow me to use customfabric.modules.utils - bc otherwise I can't create the sphinx docs
2023-07-13 15:24:53 +03:00
dbc5638eac
using utils.ensure_dir in the conf_setup instead of running a bash command to make the needed directories for readmes and confs. also modified layout.yml because i wanted to separate the home name for the fabric install from the directory it's meant to be installed, and i had both on, so it was duplicating the home name, ie usr/bin/fabrichome/fabrichome
2023-07-12 12:42:35 +03:00
4ae41d9ed7
added error checking to django.coverage so that if no value is passed in to application, the program sends a message and exits
2023-07-09 21:29:55 +03:00
e218dc827c
changed the types in docstrings
2023-07-09 21:11:13 +03:00
855bc7feb5
updated doc files
2023-07-08 22:33:05 +03:00
252443c073
refactored utils.handle_help to have better docstrings and renamed to be acalled handle_flag_message
2023-07-08 22:23:09 +03:00
f53569cadc
modified a bunch of docstrings and fixed up the arguments for ensure_dir and ensure_file
2023-07-08 21:26:58 +03:00
69f644c763
added docs as a subdirectory
2023-07-07 19:12:26 +03:00
ce52403b15
got rid of debugging code
2023-07-07 18:03:07 +03:00
25cc12b89d
fixed a probem with modules.utils import virtualenv so it now calls customfabric.modules... also fixed an annoying invalid escape sequence \[ bug by turning it into a raw string. finally got rid of an unneeded variable 'settings_coveragepath'
2023-07-07 17:33:55 +03:00
9484150903
made database and deploy import relative
2023-07-07 16:38:52 +03:00
9db3b58139
made modules/django to work with relative import
2023-07-07 16:25:23 +03:00
940ef17a7d
updated django and initialize so it creates the relative path using layout.fabric.root/layout.fabric.home, got rid of paths.tools.fabric.full and replaces paths.tools.fabric.relative with just paths.tools.fabric
2023-07-07 15:47:02 +03:00
7eb5c53fc7
got rid of placeholder for check_version def. also fixed up missing parenthesis by a print function
2023-07-07 15:25:00 +03:00
1c5599bd61
got rid of any code that references maintenance.loadconfiguration(fabric), this include the maintenance.check_version command which that load_configuration was meant to be used by
2023-07-07 15:23:22 +03:00
55e6c98075
updated docstrings that refer to fabric path by calling the head of the path 'fabric_local'
2023-07-07 15:16:11 +03:00
1267e91976
changed django configuration for settings that it inserts the relative path in layout that has this fabric implementation
2023-07-07 15:11:40 +03:00
868ca7984e
updated django.coverage so it forces the user to specify which application it is using, also added docstrings to django.contrib
2023-07-07 09:11:44 +03:00
45ba1ac426
added methods to use coverage in both the initialize and django modules, including in django.edit, a helper test method to see if coverage is specified in the virtual env file for the branch, and commented out code in the virtual env. also django.coverage directly checks the configuration file coverage branch which will be there if coverage is specified in the virutalenv file for the branch
2023-07-04 03:13:23 +03:00
0063989ba5
fixed bug in django.coverage that was caused because django.manage has to at least call on the test module when being used otherwise if I don't pass it anything it blows up
2023-07-04 02:17:35 +03:00
f740981bd5
modified coverage so it no longer uses help as an argument, and prefix and suffix in manage are empty strings instead of None bc that was giving an error
2023-07-03 23:33:39 +03:00
b92c025f75
updated coverage to look for the coverage.rc file as setup.cfg in share/coverage and the print out htmlcov in share/coverage
2023-07-03 23:19:11 +03:00
eb66e2a1bf
added a method to automate python converage in the django module
2023-07-03 23:06:29 +03:00
7ee75bef12
fixed template paths problem in initialize. was previously putting the general templates directory in the main root, moved it to share/templates
2023-06-06 22:08:33 +03:00
bc57729538
added python-version variable
2023-05-22 15:44:17 +03:00
2bf156a25b
Merge branch 'master' of bitbucket.org:ronnyabraham/fabric
2023-05-18 15:41:06 +03:00
ec4730a7fd
updated configuration.backup so it has a better description
2023-05-18 15:40:51 +03:00
b4954662d5
got rid of some dead code
2022-09-12 14:00:05 +03:00
dc564de0c1
fixed docker-compose so it's now 'docker compose'
2022-09-04 00:24:18 +03:00
dbc60c1cdc
making it possible to add volumes to the docker section of the project file
2022-09-01 22:24:49 +03:00
d4b8859d91
some cleaning up of code in utils
2022-05-09 14:32:42 +03:00
a58e04db5f
fixed an issue with deploy.bootstrap, cuz docker was creating a fully functioning database using admin as the owner, and so it wasn't adding ronny. Instead of making yet another script I decided to just drop the datbase, using the database.drop_db which only gets rid of the datbase and not any users, and then initialize it from there
2022-05-08 17:01:20 +03:00
8e0afa1133
had to reset allowed hosts to a type list, bc when it gets generated into the django settings file as a type set, it cannot be read by the django library
2022-05-08 16:50:21 +03:00
2f71995f39
changed django.allowed_hosts to type set from type list, bc I found that names were being duplicated in the allowedhosts, so I'm side stepping that by using set
2022-05-08 16:43:39 +03:00
9106127a16
removed database.init from deploy.bootstrap b/c the database was already getting initialized
2022-05-08 12:41:56 +03:00
286f149f08
fixed import statement so that maintenance is called from same dir as database
2022-05-08 12:39:08 +03:00
cfa2b79788
fixed problem with docker ip when running on local machine, just give it localhost
2022-05-08 12:28:19 +03:00
fe5c77a5bf
added debugging to run, create - docker_service_name property passed to jinja file
2022-05-06 18:13:29 +03:00
2fd9a8eb64
fixed up some PEP warnings, and put a few debugging print statements into comments
2022-04-29 14:41:06 +03:00
259eb14238
fixed following error: [localhost] run: docker-machine ip default
...
[localhost] out: /usr/local/bin/virtualenvwrapper.sh: line 230: : command not found
[localhost] out: virtualenvwrapper.sh: There was a problem running the initialization hooks.
[localhost] out:
[localhost] out: If Python could not import the module virtualenvwrapper.hook_loader,
[localhost] out: check that virtualenvwrapper has been installed for
[localhost] out: VIRTUALENVWRAPPER_PYTHON= and that PATH is
[localhost] out: set properly.
[localhost] out: Error getting IP address: ssh command error:
[localhost] out: command : ip addr show
[localhost] out: err : exit status 255
[localhost] out: output :
[localhost] out:
2022-04-29 14:36:06 +03:00
15370c4a28
got rid of some unnecessary regex in the fixtures function
2020-08-31 20:16:33 +03:00
512328cb6f
fixed over indented line
2020-08-10 22:46:30 +03:00
99893eafae
set docker to use run for commands
2020-03-23 23:42:34 +02:00
7502ce06c4
no longer need the -no-site-packages flag
2020-03-23 23:42:14 +02:00
6bc06589ef
update fixes
2020-03-02 19:30:42 +02:00
6b3d4be580
updated prompt_continue, so it now gives the option of either exiting on failure or returning a true/false value
2019-11-03 17:44:16 +02:00