<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Sebastian Schlein on Medium]]></title>
        <description><![CDATA[Stories by Sebastian Schlein on Medium]]></description>
        <link>https://medium.com/@sebsn?source=rss-601c358bd931------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*KnGg_Pr9pxa54aeKhTJ0Zw.jpeg</url>
            <title>Stories by Sebastian Schlein on Medium</title>
            <link>https://medium.com/@sebsn?source=rss-601c358bd931------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 16:52:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sebsn/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Set up a blazing fast Magento 2 development environment in less than 10 minutes]]></title>
            <link>https://medium.com/@sebsn/set-up-a-blazing-fast-magento-2-development-environment-in-less-than-10-minutes-39b1a8584c6a?source=rss-601c358bd931------2</link>
            <guid isPermaLink="false">https://medium.com/p/39b1a8584c6a</guid>
            <category><![CDATA[magento-2]]></category>
            <category><![CDATA[php]]></category>
            <category><![CDATA[os-x]]></category>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[magento]]></category>
            <dc:creator><![CDATA[Sebastian Schlein]]></dc:creator>
            <pubDate>Fri, 05 May 2017 15:38:18 GMT</pubDate>
            <atom:updated>2018-02-16T08:03:17.783Z</atom:updated>
            <content:encoded><![CDATA[<p>Running multiple Magento 2 development environments is hard. You have to check out the code, install Magento and end up with a very slow environment. Have you tried a VM? Too slow! Have your tried the Docker environment? Better, but still painfully slow! So you end up with a local setup and configuring vHosts and all this stuff for every project you are working on. What is the easiest way to set up a blazing fast development environment?</p><h3><strong>Installation</strong></h3><p>Valet is a minimalistic development environment which runs locally on your Mac. It supports multiple project types like generic PHP, Laravel, Magento 2, Craft CMS, Symfony or just Wordpress.</p><ol><li>Install Laravel Valet via the <a href="https://laravel.com/docs/5.4/valet">Official Documentation</a></li><li>Go to your root project where you store your projects and add it to Valet by typing valet park into your terminal. Valet is now watching all projects in this directory. If you only want to link a single project, go to the root of the project and type valet link project-name</li></ol><p>Now you can access your PHP projects with foldername.test or project-name.test like magic. (Updated: Former *.dev domains do not work in Google Chrome anymore)</p><p><strong>Optional</strong>: I’ve created a Valet extension for creating databases with a simple command. I’m using it every time I setup a new project.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c69a79e2b67e5eae8848fc4fc2ce9cda/href">https://medium.com/media/c69a79e2b67e5eae8848fc4fc2ce9cda/href</a></iframe><p>Put this file into your ~/.valet/Extensions directory and restart Valet with valet restart. You can create a new local database with valet db DB-NAME now.</p><h3>Magento Setup</h3><p>Install Magento 2 via composer and add the --use-rewrites=1 flag during the setup! If you don’t do it, Magento adds the server.php of Valet in your URL and all links are broken.</p><pre>bin/magento setup:install --admin-firstname=FIRSTNAME --admin-lastname=LASTNAME --admin-email=admin@email.com --admin-user=admin --admin-password=&#39;PASSWORD&#39; --base-url=&#39;http://YOUR-FOLDER-NAME.dev&#39; --db-name=&#39;DB-NAME&#39; --backend-frontname=admin --use-rewrites=1</pre><h3>Bonus: Share your local development environment with a client</h3><p>Share your local environment with a simple valet share command. Valet creates a local tunnel via ngrok and gives you http and https URLs for a direct access. Whether you are behind a corporate firewall or not.</p><p>Make sure to update your Base URLs in Magento and, as always, clear your cache with bin/magento cache:clean.</p><h3>Conclusion</h3><p>No virtualization anymore! For most shops, this setup is quite reliable for development. Sure, it might not work for an enterprise version with different caching layers and a lot of services, but for most PHP and Magento projects, it works fine — and it’s fast.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=39b1a8584c6a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Don’t pay your customers for a newsletter subscription]]></title>
            <link>https://medium.com/sebastian-schlein/dont-pay-your-customers-for-a-newsletter-subscription-95f4c2caf65?source=rss-601c358bd931------2</link>
            <guid isPermaLink="false">https://medium.com/p/95f4c2caf65</guid>
            <category><![CDATA[email-marketing]]></category>
            <category><![CDATA[online-marketing]]></category>
            <category><![CDATA[ecommerce]]></category>
            <category><![CDATA[sales]]></category>
            <category><![CDATA[marketing]]></category>
            <dc:creator><![CDATA[Sebastian Schlein]]></dc:creator>
            <pubDate>Sat, 22 Apr 2017 08:31:47 GMT</pubDate>
            <atom:updated>2017-04-22T08:46:26.440Z</atom:updated>
            <content:encoded><![CDATA[<p>Email is still the biggest driver for eCommerce and every marketing team wants the access to the inbox of their customers. In times where everyone gets too many emails, your customers need a very good reason for a subscription.</p><p>You might know the common popup on nearly any shop which offers some kind of discount for a confirmed newsletter sign up. Common discounts are 5–10€ — it depends on how badly you want to grow your subscriber list — or free shipping. If you are likely to adopt this for your shop and pay for a subscription, DON’T DO THAT!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hPF3fnjhI9PEy5JF5BxZDg.png" /></figure><p>I’ve analyzed the reports of 100 newsletters we sent during the last 2 years. It turns out, that getting a discount grew the subscriber list about 40% during year 1 where we were promoting a 5€ discount for a newsletter subscription. In year 2, we did not promote the discount and the growth was only about 15%. This sounds like a good reason for the discount but after this, I had a look at the open rate and ultimately, at the number of clicks and the revenue these newsletters created.</p><p><strong>The open rate decreased about the same number than our list grew.</strong></p><p><strong>The absolute number of clicks stayed the same for the whole 2 years.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a4qqnsSpLJtMEYKw9GB1QA.png" /></figure><p>It turns out that only the customers who registered without a promotion are interested in the content and are converting into repeating customers via our regular newsletters.</p><p>This leads to the result that paying your customers for a newsletter subscription only does one thing: Decreasing the revenue for their orders!</p><p>Where to go from here?</p><p>Using an incentive is not the worst thing you can do, at least it grows your reach. There are quite a few incentives that don’t decrease your revenue that much and which we’re trying now.</p><ol><li>We’re going to use small gifts and starting with sweets — they cost about 1/10th of the discount and give you a smile when you open your delivery the first time. As we’re also selling them, we can add samples to orders and are likely to get a new order if the customer likes them.</li><li>Provide digital content and quickly send this out after the subscription has been confirmed. In our case, we’re selling cookbooks and can provide sample recipes with video tutorials. This is also likely to create the need for one of the cookbooks.</li></ol><p>My takeaway from this analysis is that paying customers for a newsletter subscription grows your subscriber list but not your revenue.</p><p><em>Originally published at </em><a href="https://blog.sebastianschlein.com/2017/04/dont-pay-your-customers-for-a-newsletter-subscription/"><em>blog.sebastianschlein.com</em></a><em> on April 22, 2017.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=95f4c2caf65" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sebastian-schlein/dont-pay-your-customers-for-a-newsletter-subscription-95f4c2caf65">Don’t pay your customers for a newsletter subscription</a> was originally published in <a href="https://medium.com/sebastian-schlein">Sebastian Schlein</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[7 Gründe, wieso ich keinen NDA vor dem ersten Meeting unterschreibe]]></title>
            <link>https://medium.com/@sebsn/7-gr%C3%BCnde-wieso-ich-keinen-nda-vor-dem-ersten-meeting-unterschreibe-4269ffe198?source=rss-601c358bd931------2</link>
            <guid isPermaLink="false">https://medium.com/p/4269ffe198</guid>
            <category><![CDATA[ideas]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[nda]]></category>
            <category><![CDATA[contracts]]></category>
            <category><![CDATA[freelancers]]></category>
            <dc:creator><![CDATA[Sebastian Schlein]]></dc:creator>
            <pubDate>Wed, 22 Feb 2017 08:14:47 GMT</pubDate>
            <atom:updated>2017-02-22T08:14:47.431Z</atom:updated>
            <content:encoded><![CDATA[<p>Bei meiner Arbeitet als freier Digitalberater, Full-Stack Webentwickler, Softwareprojektleiter und Growth Marketer begegnen mir oft Kunden, die von mir verlangen eine Geheimhaltungsvereinbarung (Non-Disclosure Agreement, NDA) zu unterzeichnen, bevor sie mit mir über ein Projekt sprechen.</p><p>Im Grunde verlangen sie damit von mir eine rechtliche Absicherung, dass ich die Idee nicht nehme und selber daran arbeite oder sie mit jemand anderen teile, der dies dann tut.</p><p>Klingt doch eigentlich nach einer guten Idee, oder?</p><blockquote>Hier sind die Gründe, warum ich keinen NDA unterschreiben werde.</blockquote><h3>Ich höre viele Ideen</h3><p>Für jedes Projekt und jeden Kunden mit dem ich arbeite, spreche ich oft mit etlichen anderen Unternehmen in verschiedenen Phasen, die meine Unterstützung benötigen. Dadurch höre ich unzählbare Produktideen pro Woche und Monat.</p><p>Es ist nahezu unmöglich nachzuhalten mit wem ich über welche Idee gesprochen habe. Schon einmal einen Satz mit “Ich kann mich nicht erinnern, wo ich das gelesen habe, aber…” begonnen? Einen Überblick über alle Produkte und Ideen zu haben funktioniert einfach nicht.</p><p>Es ist sogar noch schwieriger nachzuhalten, welche dieser Themen von einem NDA geschützt sind. Die Zeit, die ich benötigen würde, um all das nachzuhalten ist es nicht wert. Daher ist es viel einfacher einfach niemals einen NDA zu unterschreiben.</p><h3>Kein Wert für mich</h3><p>Wenn ich einen NDA unterschreiben soll, bevor ich etwas über die Idee erfahre, weiß ich per Definition sehr wenig über die Idee.</p><p>Im Rechtssystem existiert das Konzept des Entgelts, wenn zwei Parteien einen Vertrag eingehen. Das bedeutet zusammengefasst, dass beide Parteien durch ihre Unterschrift etwas von Wert bekommen.</p><p>Ich weiß nicht einmal, worüber wir reden werden! Woher soll ich wissen, wie groß der Wert ist, den ich durch meine Unterschrift erhalte?</p><h3>Es erzeugt Verpflichtungen für mich</h3><p>Ohne die Idee zu kennen, kann ich nicht wissen, an welchen Ideen und in welchem Bereich ich durch meine Unterschrift in der fernen Zukunft nicht mehr arbeiten darf.</p><p>Was ist, wenn ich bereits selber an die Idee gedacht habe oder sogar bereits daran arbeite? Sobald ich unterschreibe, kann ich jede Idee, die im gleichen Bereich liegt, nicht mehr verfolgen.</p><h3>Es erzeugt Verpflichtungen für meine anderen Kunden</h3><p>Ähnlich sieht es aus, wenn ich mit einem anderen Kunden arbeite, der plötzlich seine eigene Version der Idee hat. Ich hätte Verpflichtungen gegenüber diesem Kunden, denen ich nicht mehr nachkommen könnte.</p><p>Wenn ich an einer Idee arbeite, die möglicherweise ähnlich der Idee ist, die mir nach meiner Unterschrift bekanntgegeben wird, werde ich verklagt. Im schlimmsten Fall kann mein anderer Kunde auch durch den NDA verklagt werden. Dieses Risiko will ich nicht eingehen.</p><h3>Es ist ein Zeichen einer wertlosen Idee</h3><p>Meiner Erfahrung nach haben Ideen und Konzepte keinen Wert. Ich habe etliche “Millionen Dollar Startup” Ideen und Konzepte in meiner Schublade.</p><p>Ausführung! Das ist es, worauf es bei einer Idee ankommt. Das ist es, was ein erfolgreiches Unternehmen erschafft. Wenn die Idee so einfach auszuführen ist, dass sie geheimgehalten werden muss, dann spricht das nicht für die Idee.</p><h3>Es ist ein Zeichen für einen klagefreudigen Kunden</h3><p>Ich bin ein kleines Unternehmen und für das bin ich verantwortlich. Daher gehe ich Dinge konservativ an und versuche mich aus rechtlichen Auseinandersetzungen herauszuhalten.</p><p>Als Freelancer, dessen Erfolg auf meiner eigenen Reputation basiert, arbeite ich an Geschäftsbeziehungen, die von Vertrauen geprägt sind.</p><p>Warum sollte ich mich mit einem potentiellen Kunden treffen, der schwer bewaffnet mit Verträgen auf mich zukommt, deren einziger Wert darin besteht mich einfach verklagen zu können? Eine größere Warnung vor Misstrauen und Ärger gibt es nicht.</p><h3>NDAs sind nicht wirklich etwas wert</h3><p>Wenn das Argument nun ist: “Alter, beruhig dich! NDAs sind kein großes Ding und ich werde dich schon nicht verklagen!”</p><p>Es ist schon klar, dass das der einzige Grund eines NDAs ist? Es einfach zu machen, mich zu verklagen.</p><p>Wenn die Empfehlung, NDAs mit potentiellen Dienstleistern zu machen, von einem Anwalt kommt, einfach ignorieren. NDAs sind ein super simpler Weg für Anwälte, schnelles Geld zu machen.</p><p>Wer wirklich glaubt, dass NDAs davor schützen würden, eine Idee zu klauen, sollte etwas Recherche betreiben, wie wertvoll NDAs wirklich sind. <br>Spoiler Alert: Sie sind selten wirksam, da die Hürde, nachzuweisen, dass etwas gestohlen wurde, extrem hoch ist. Es ist sehr unwahrscheinlich vor Gericht zu gewinnen.</p><p>Ich hoffe das gibt ein genaueres Bild, wieso ich im frühen Stadien der Zusammenarbeit keine NDAs unterschreibe. Sobald es sich zu einem konkreten Projekt entwickelt, unterschreibe ich gerne benötigte Verträge. Jedoch wissen wir an dem Punkt beide, was wir davon haben.</p><p>Wenn ich dennoch einen NDA unterschreiben soll, muss ich leider passen.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4269ffe198" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Simple PHP Deployments with Bitbucket Pipelines]]></title>
            <link>https://medium.com/@sebsn/simple-php-deployments-with-bitbucket-pipelines-5b34f970f410?source=rss-601c358bd931------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b34f970f410</guid>
            <dc:creator><![CDATA[Sebastian Schlein]]></dc:creator>
            <pubDate>Tue, 22 Nov 2016 07:54:26 GMT</pubDate>
            <atom:updated>2016-11-29T20:51:26.129Z</atom:updated>
            <content:encoded><![CDATA[<p>Pipelines are the newest feature of <a href="https://bitbucket.org/">Bitbucket</a> and they are Atlassians answer to other cloud hosted continuous integration platforms. A pipeline is a job that will be triggered on every repository push and which creates a new docker container with the code of the changed branch. Besides running your tests, you can also run SSH commands within the container and this allows you to use the pipelines for simple git deployments. To learn more about Bitbucket Pipelines, <a href="https://bitbucket.org/product/features/pipelines">click here</a>.</p><p>In this example, I’m deploying a Laravel application to a public accessible test environment. The deployment is triggered every time code is pushed to the develop branch.</p><p>First of all, we need to set up new SSH keys at Bitbucket to allow SSH commands. This process is carefully documented in the <a href="https://confluence.atlassian.com/bitbucket/access-remote-hosts-via-ssh-847452940.html">Bitbucket documentation</a>.</p><p>Second, we need a deployment script that runs the commands on the target server. On the one hand, the script makes it easier to apply custom deployment commands for the environment, on the other hand, we’re not able to SSH into our target machine and run commands there directly. All commands of the pipeline will be run in the docker container.</p><p>The script just cds into the deployment directory, pulls the latest changes from the repository, runs a composer install and migrates the database. Pretty straight forward. I recommend to put the script in a script or deploy directory to group things. My example uses a directory called “scripts”.</p><pre># deploy.sh<br>#!/bin/bash<br><br>cd /home/forge/pipeline-deployments.sebastianschlein.com<br>git pull origin develop<br>composer install --no-interaction --prefer-dist --optimize-autoloader<br>php artisan migrate --force</pre><p>Don’t forget to make the script executable:</p><pre>chmod +x deploy.sh</pre><p>Bitbucket Pipelines are simple to use. You have to enable the pipeline feature for the repository and commit a file named “bitbucket-pipelines.yml” into the root of the project. If you enable pipelines for the repository, you can create a file directly within Bitbucket which lets you choose from recommended Docker containers. This makes it easier if you don’t have Docker experiences.</p><p>My pipeline configuration does a few things:</p><ol><li>Use the default PHPUnit Docker, this makes it also possible to run tests</li><li>Limit the pipeline execution to the develop branch</li><li>Copy the public SSH key of my target machine to the docker containers known hosts file</li><li>Copy the connected private SSH key to the docker container</li><li>SSH into the target server and run the deploy script</li></ol><pre># bitbucket-pipelines.yml<br>image: phpunit/phpunit:5.0.3<br><br>pipelines:<br> branches:<br>   develop:<br>     - step:<br>       script: # deploy develop to latest environment<br>         - mkdir -p ~/.ssh<br>         - cat scripts/known_hosts &gt;&gt; ~/.ssh/known_hosts<br>         - (umask 077 ; echo $PIPELINE_PRIVATE_SSH_KEY | base64 --decode &gt; ~/.ssh/id_rsa)<br>         - ssh forge@pipeline-deployments.sebastianschlein.com &#39;bash -s&#39; &lt; scripts/deploy.sh</pre><p>Make sure to replace $PIPELINE_PRIVATE_SSH_KEY with the name of your Bitbucket environment variable that you have created during the SSH setup.</p><p>Bitbucket Pipelines are the easiest deployment solution which also suit small projects and if you are not managing your servers with a tool like Laravel Forge or have a complete continuous deployment pipeline with Bamboo or Jenkins in place.</p><p>Where to go from here? I’m using Slack for my projects so it makes sense to send the results to the project specific Slack channels. The next steps are usually running the unit tests and modify the script for zero downtime deployments. <a href="https://twitter.com/seb_sebsn">Follow me on Twitter</a> to get notified when the articles about these topics are online.</p><p><em>Originally published at </em><a href="http://blog.sebastianschlein.com/2016/11/simple-php-deployments-with-bitbucket-pipelines/"><em>Sebastian Schlein</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b34f970f410" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to upload your iOS apps to DISTRIBUTOR with fastlane]]></title>
            <link>https://medium.com/@sebsn/how-to-upload-your-ios-apps-to-distributor-with-fastlane-c5b867fd9128?source=rss-601c358bd931------2</link>
            <guid isPermaLink="false">https://medium.com/p/c5b867fd9128</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[fastlane]]></category>
            <category><![CDATA[enterprise-app-store]]></category>
            <dc:creator><![CDATA[Sebastian Schlein]]></dc:creator>
            <pubDate>Mon, 25 Apr 2016 07:11:24 GMT</pubDate>
            <atom:updated>2016-04-28T14:52:26.798Z</atom:updated>
            <content:encoded><![CDATA[<p>You can now generate easy to use app install links directly from the command line with <a href="https://fastlane.tools/">fastlane</a> and <a href="https://wifidistribution.com/">DISTRIBUTOR</a>.</p><ol><li>Register an API token in the developer area of Distributor <a href="https://wifidistribution.com/developer">https://wifidistribution.com/developer</a></li><li>Download the distributor action and save it to <strong>fastlane/actions</strong> inside your project directory until my pull request to fastlane has been merged<br><a href="https://gist.github.com/sschlein/e75205c7eeafa5424bd646f9a6c6ac10">https://gist.github.com/sschlein/e75205c7eeafa5424bd646f9a6c6ac10</a></li><li>Add the distributor action to your lane<br><a href="https://gist.github.com/sschlein/27ce704a837459163e50d8e2e388b4fb">https://gist.github.com/sschlein/27ce704a837459163e50d8e2e388b4fb</a></li><li>Trigger your lane and open the URL</li></ol><p>The Distributor action returns the http link to the install site at <a href="https://wifidistribution.com/">https://wifidistribution.com</a> and can be used for further steps in fastlane. At <a href="http://www.ort-online.net/">ORT Interactive</a>, we have lanes to mail these links to project managers or just post them in our Slack channel.</p><blockquote><a href="https://wifidistribution.com/">Create private iOS and Android app stores for your clients</a><strong>!</strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c5b867fd9128" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>