Code Monkey home page Code Monkey logo

gerenciador-series's Introduction

sandbox-laravel-series

🇧🇷 Essa aplicação começou como "fork" de um projeto desenvolvido enquanto acompanhava o curso de Laravel da ALura.

🇬🇧 This application started as a "fork" from a learning project made following a course about Laravel at Alura.

🇧🇷 Durante o curso foi desenvolvido um sistema para gerenciar as séries que o usuário estivesse acompanhando, dessa forma ele poderia separar em temporadas e marcar episódios que já assistiu .

🇬🇧 The application was deployed into Heroku and below you can see my steps to do this.

(*) A idéia é escrever o readme em PT-BR e EN... isso vai ir aos poucos, mas vai (espero).

How to deploy a Laravel application into Heroku

1. Installing Heroku CLI

The first to do is install a tool that allow us to menage our Heroku applications from command line interface.

From Heroku CLI documentation we can see Git is required. If you're on a Linux distribution probably already has Git installed, if hasn't run the following command in terminal (or search for a more suitable one):

sudo apt install git

Soon I hope write a guide/repository about Git. Also was needed to install snap on my PC (Mint) before continue:

sudo apt install snapd

And finally it's turn for Heroku:

sudo snap install --classic heroku

Now you can finally login on Heroku running this command from terminal:

heroku login

If a browser window appears just entry the credentials from your Heroku account.

In other hand, if you receive a warning from terminal saying this command is not defined or something like that, could be necessary set the $PATH variables for softwares installed from snap, add export PATH=$PATH:/snap/bin in the end of ~/.bashrc:

cd
nano .bashrc

After that try to login again.

2. Creating a project in Heroku

You can do this in two different ways:

  1. using the interface web: Just access Heroku web page and look for a button new available in somewhere (it's really easy to find it), click on it then in Create new app.
    After been redirect to a new page, choose a unique name for your app and click on Create app.
    Then you will be sent to a page with "deploy instructions". Check if Heroku Git is the selected method and follow the instructions for you case.

  2. using the command line:

3. General configuration

3.1. Adding heroku remote

If your project already is a git repository the next to do is add heroku remote, so in your project directory run the following command:

heroku git:remote -a <unique-app-name>

3.2. Setting environment variables

4. Database configuration

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.