Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vagrant with ansible #81

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open

Conversation

dragonito
Copy link
Contributor

A mental note vagrant/ansible development enviroment

src/AppBundle/Entity/Entry.php Outdated Show resolved Hide resolved
ansible/roles/memcached/tasks/main.yaml Outdated Show resolved Hide resolved
app/DoctrineMigrations/Version20181221222830.php Outdated Show resolved Hide resolved
// this up() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');

$this->addSql('ALTER TABLE entry CHANGE url url VARCHAR(2048) NOT NULL');
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was more or less a performance consideration, since this field holds an important unique index and keeping that to a sane size seemed prudent, but since I never experienced any bottlenecks in this area, I guess we can up this

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be increased for using long urls, IE git 2048 and the most other browser more...

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, I agree - please re-read my comment 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I´ll fix in with a new pr

README.md Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@tolry
Copy link
Owner

tolry commented Dec 28, 2018

since you decided to put so many changes in one PR, you will have to live with me dissecting this very tedious - having small PRs would make both of our lives much easier 😄

* bin/console fo:us:cr (follow the steps)
Prerequirements: Vagrant installed, Virtualbox installed, Ansible installed

* ```vagrant up```
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this even render in Markdown? some combination of inline code block and fenced code block? to see what I was talking about? https://raw.githubusercontent.com/tolry/talkly/master/README.md

@@ -0,0 +1,23 @@
parameters:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you will need to change

- cp app/config/parameters.yml.dist app/config/parameters.yml

To make travis use this file, Scrutinizer is configured within scrutinizer, I think - will have to check

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

scrutinizer automatically uses parameters.dist.yml, see https://scrutinizer-ci.com/g/tolry/mental-note/inspections/d8c5ac24-1fe8-4334-a5ea-a26616bb512c/log

sed -i 's/database_host: .*/database_host: 127.0.0.1/' app/config/parameters.yml.dist

so I would really prefer keeping the dist.yml as template as well as for the tests (travis, scrutinizer) and your setup using a different file or seding your settings or similar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants