thedevdojo/larasail

www. alias is not setup

sutcliffe121 opened this issue · 2 comments

Describe the bug

How can I verify that '--www-alias' has worked?

The www. domain to my site doesn't appear to work. I added '--www-alias' when running larasail host.

No SSL is setup for the www. domain and it displays the nginx page when accessed (rather than my site).

https://testing.cjs-web.co.uk - works
http://www.test.cjs-web.co.uk - displays nginx page

I setup a CNAME record as follows:
image

I have a Laravel site in a Bitbucket repo, using Larasail to setup a Digital Ocean droplet.

To Reproduce

The commands I ran on my droplet:

curl -sL https://github.com/thedevdojo/larasail/archive/master.tar.gz | tar xz && source larasail-master/install

larasail setup php74

cd /var/www && git clone https://myusername@bitbucket.org/myusername/myrepo.git

composer install
cp .env.example .env
php artisan key:generate

larasail host myrepo.mydomain.co.uk /var/www/myrepo--www-alias

Thanks @sutcliffe121 for reporting the issue. Should be fixed by #86

Thanks @SamuelMwangiW, I can confirm the issue is now fixed and working as expected.