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

Fix file permission for .env file #16

Merged
merged 1 commit into from
Nov 16, 2015
Merged

Fix file permission for .env file #16

merged 1 commit into from
Nov 16, 2015

Conversation

andygrunwald
Copy link
Contributor

See cachethq/cachet#1111 for details

@GrahamCampbell
Copy link
Contributor

This breaks stuff for people running artisan commands though, surely?

@andygrunwald
Copy link
Contributor Author

Why breaks this change something?
We do the same (recursive) in line 6. See https://github.com/cachethq/Docker/blob/master/Dockerfile#L6

I tested with with this commands and it works great on my machine (Mac OS X El Capitan, Docker 1.9)

export DB_USERNAME=cachet
export DB_PASSWORD=cachet
export DB_ROOT_PASSWORD=cachet
export DB_DATABASE=cachet

docker build -t cachethq/docker:2.0.0-RC2 .

docker run --name mysql -e MYSQL_USER=$DB_USERNAME -e MYSQL_PASSWORD=$DB_PASSWORD  -e MYSQL_ROOT_PASSWORD=$DB_ROOT_PASSWORD -e MYSQL_DATABASE=$DB_DATABASE -d mysql

docker run -d --name cachet --link mysql:mysql -p 80:8000 -e DB_HOST=mysql -e DB_DATABASE=$DB_DATABASE -e DB_USERNAME=$DB_USERNAME -e DB_PASSWORD=$DB_PASSWORD cachethq/docker:2.0.0-RC2

docker exec -i cachet php artisan migrate --force
docker exec -it cachet php artisan key:generate
docker exec -it cachet php artisan config:cache

@jbrooksuk
Copy link
Member

Ping @cachethq/docker

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.

4 participants