🇧🇷 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).
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.
You can do this in two different ways:
-
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 inCreate new app
.
After been redirect to a new page, choose a unique name for your app and click onCreate app
.
Then you will be sent to a page with "deploy instructions". Check ifHeroku Git
is the selected method and follow the instructions for you case. -
using the command line:
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>