Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,29 @@ sudo apt-get update
The main settings to change are in the [`env_vars/base.yml`](env_vars/base.yml)
file, where you can configure the location of your Git project, the project
name, and the application name which will be used throughout the Ansible
configuration. I set some default values based on my open-source app, [YouTube
configuration.

#### Required changes from default project
I set some default values based on my open-source app, [YouTube
Audio Downloader][youtube-audio-dl].

In `base.uml` update the following configuration variables:
- `git_repo`
- `project_name`
- `application_name`

Rename the nginx template file:
In roles/nginx/templates/, rename:
`youtubeadl.j2` to the `project_name` you set in `base.yml` above.

See *Pulling from a private git repository using SSH agent forwarding* below
for info on using a git repository via ssh.

The project uses `master` branch of the `git_repo` repositoy by default.
Specify a different branch using `git_branch` in `vagrant.yml`.


#### Project Structure
Note that the default values in the playbooks assume that your project
structure looks something like this:

Expand Down
2 changes: 1 addition & 1 deletion env_vars/vagrant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ django_secret_key: "akr2icmg1n8%z^3fe3c+)5d0(t^cy-2_25rrl35a7@!scna^1#"

broker_url: "amqp://{{ rabbitmq_application_user }}:{{ rabbitmq_application_password }}@localhost/{{ rabbitmq_application_vhost }}"

requirements_file: "{{ project_path }}/requirements_local.txt"
requirements_file: "{{ project_path }}/requirements.txt"

run_django_db_migrations: true
run_django_collectstatic: true
Expand Down