These are chat archives for mirumee/saleor

27th
Aug 2018
Lokesh Sanapalli
@lokesh1729_gitlab
Aug 27 2018 06:01
@stephenmoloney thank you very much, I wonder if there is no official documentation on setting up dev env.
Lokesh Sanapalli
@lokesh1729_gitlab
Aug 27 2018 08:19
docker-compose down --rmi local --remove-orphans --volumes;
docker-compose build --build-arg STATIC_URL=/static/ web celery && docker-compose run --rm web /bin/sh -c 'python manage.py migrate && \
python manage.py populatedb --createsuperuser' && docker-compose up --no-build -d

:point_up: that should do it

@stephenmoloney what is this command ??? the first one is running the application, do I need this also ???

Stephen Moloney
@stephenmoloney
Aug 27 2018 10:20
The first command is a complete cleanout of any existing images, volumes, etc... so you can be sure to start from a clean slate.
Lokesh Sanapalli
@lokesh1729_gitlab
Aug 27 2018 10:40
okay, what about docker-compose build do I still need that when I executed docker-compose run and my app is running
Stephen Moloney
@stephenmoloney
Aug 27 2018 11:10
@lokesh1729_gitlab, since mirumee/saleor#2693 was merged today, if you checkout the latest master, then all you need now is
docker-compose run --rm web /bin/sh -c 'python manage.py migrate && \
python manage.py populatedb --createsuperuser' && docker-compose up -d
The previous docker-compose build --build-arg STATIC_URL=/static was only needed because of a temporary issue with master, that's been resolved now.
Lokesh Sanapalli
@lokesh1729_gitlab
Aug 27 2018 11:11
okay.... there is no documentation on setup ??
Stephen Moloney
@stephenmoloney
Aug 27 2018 11:12
Lokesh Sanapalli
@lokesh1729_gitlab
Aug 27 2018 11:12
okay, thank you very much... will go through it
Stephen Moloney
@stephenmoloney
Aug 27 2018 11:12
docker-compose information is available on the docker-compose docs pages.
Saqib khan
@saqibkhan2523
Aug 27 2018 15:24
for setting up email. Do I just have to replace DEFAULT_FROM_EMAIL=noreply@example.com with my email after registering with google?
NyanKiyoshi
@NyanKiyoshi
Aug 27 2018 15:28
Yes
But using a SMTP relay would be better than using gmail (e.g.: Amazon SES, mailjet, ...), more information here https://github.com/mirumee/saleor/blob/f3ec05b036de41a81a0e499edeed37ee77903856/docs/guides/email_integration.rst
Saqib khan
@saqibkhan2523
Aug 27 2018 15:54
@NyanKiyoshi thanks a lot as always for help