bigappleinsider / browserstackapi

Browserstack Screenshots API
2 stars 0 forks source link

Browserstack Screenshots API

App to generate screenshots given a CSV with a list of URLS

Demo

http://youtu.be/6Y349Zugnmo

Setup and Installation

Required Software

Configuration

  1. copy .env.example.php to .env.php
  2. fill in blanks in .env.php with correct info: keys, email etc
  3. edit apache config for the site (On Ubuntu it's located in /etc/apache2/sites-enabled/automation.conf in my case)
  4. add the following: SetEnv APP_ENV production
  5. restart apache (On Ubuntu command is: sudo service apache2 restart )

Installation

composer install
php artisan migrate
php artisan db:seed

Refresh Browser List

php artisan db:seed --class="BrowserTableSeeder"

Configure Supervisor

Restarting

sudo service supervisor start
sudo supervisorctl reload

/etc/supervisor/conf.d/queue.conf

[program:queue]
command=php artisan queue:listen
directory=/home/vagrant/laravel-root/automation
stdout_logfile=/home/vagrant/laravel-root/automation/app/storage/logs/supervisor.log
redirect_stderr=true

supervisorctl

supervisor> status
supervisor> reread
queue: available
supervisor> add queue
queue: added process group
supervisor> start queue
queue: ERROR (already started)
supervisor> status
queue                            RUNNING    pid 27174, uptime 0:00:11

Recommendations

Documentation for the entire framework can be found on the Laravel website.