I'm new to deploying stuff and I need some help deploying a school project to Heroku.
So I've got a github repo set up like this:
The folders e2e-tests, client, server and shared are all their own projects. The server is a nodeJS backend that communicates with a mongoDB and the client is a React app. They communicate via localhost.
Because the root folder does not have a package.json file I can't deploy to Heroku using their standard buildpack. Is it possible to deploy my app (client + server) to Heroku?
If so, how would I do that?
Heroku doesn’t natively support multiple apps in a single repository, you might find that this thirdparty buildpack, https://github.com/lstoll/heroku-buildpack-monorepo, gives you the functionality that you need?
Related
I have a project that I want to deploy which uses Next.js for the frontend and Express and Node for the backend. I would like to deploy this to heroku (backend) and vercel (frontend) once I finish building it but I have some concerns. Is this file structure ok?
If I have both my frontend and backend in one folder, would this still be possible? How am I able to connect to my frontend from the backend if I deploy on two different hosting services, is it possible to connect to my Next.js frontend from my heroku backend? In my backend I have a .env file which will contain my MongoDB URL to the database, how do I attach my .env file to the heroku backend so it can read it?
I'm a bit confused on this topic and some help would be greatly appreciated!
I am deploying a Laravel application to Heroku. I just installed a Laravel project. But did not make any changes because I installed it just to try out the Laravel deployment on the Heroku. Then I created repository. Then I created a pipeline and a production app within it on the Heroku. Then I synced the production app to the master branch of my Github repo.
This is the screenshot
Then I configured the env variables in the Heroku like this.
When I open or view the app on the browser, it says 403 forbidden. What is wrong with and how can I fix it?
https://devcenter.heroku.com/articles/getting-started-with-laravel
To deploy your application to Heroku, you must first create a Procfile, which tells Heroku what command to use to launch the web server with the correct settings. After you’ve done that, you’re going to create an application instance on Heroku, configure some Laravel environment variables, and then simply git push to deploy your code!
i want to share my Laravel(version 5.4.12) project with client, but i didn't use BitBucket before and i have no idea how to upload my Local project on Bitbucket with Database and how to access. My client want to update him daily.. so please help me out
Just create a new repo on bitbucket, then select the option that reads
I have an existing project
They will give you all instructions how to upload existing project to bitbucket.
You cannot upload your local database to bitbucket by default, unless you manually download it and place it somewhere in your project, then on your next push, it will be uploaded.
But your project already goes online with all migrations. So you can use migration on the server to install the database.
How to link with website
Once on bitbucket, your code is now available online. Then you need to connect on your server on ssh. Once connected, you can navigate where you want to install it and clone the repo.
after cloning the repo on the server when you want to link the website, you can run usual commands like php artisan migrate --seed to create and populate the database.
Make sure you create .env file online. It won't be available on bitbucket.
You can use ngrok to expose your locally hosted project over secure tunnels to the public internet even if your local host is behind NATs and firewalls . It is very easy to use, for example after you have downloaded ngrok, by running ngrok http 8000 from the command line and it will give you a URL which will expose what is normally localhost:8000 for you. Give that URL to your client and they will be able to access your localhost.
You can find ngrok here - https://ngrok.com
You can only show the progress to the client if you have deployed the project on a server or if the client can pull from bitbucket and run on their own localhost but am assuming you are not going that way so upload it on a test server.
I installed hubot, heroku and hipchat. I deployed Hubot to Heroku and I tested on hipchat, I typed some command line example: #hubot help, #hubot image me "hubot".... and It worked fine.
But in my project, I need use hipchat to deploy my project to heroku. Example when I type on hipchat is: #hubot deploy app, then my project will be deployed to heroku (instead of tying: "git push heroku master" on Terminal). Please help me, I really thank you so much!
This is a very broad questions. There is no single answer.
For sure, you need a deployment service that performs the deployment. Hubot should ping the deployment service when you send the deploy command.
The deployment service should have access to your repository and Heroku account and perform the git push command for the deploy. The deployment service may have a local clone of your project, or download it from some centralized location (E.g. GitHub) and perform a push to Heroku.
The deployment service can be a server you control, a third party service such as this one, the server where Hubot is running (not ideal).
Heroku also offers Dropbox sync and is experimenting deploy from GitHub. In this case, the deploy doesn't require a deployment service (or to be more correct, the deployment service is in fact Heroku). Hubot would simply trigger a new synchronization at Heroku, as long as Heroku is connected to either GitHub or Dropbox (depending on where the app is stored).
I want to deploy my non web application to server. Wheni was going thru this site 'http://theme.fm/2011/08/tutorial-deploying-wordpress-with-capistrano-2082/' the first line says capitrano is used to deploy web applications. I am confused should i proceed with capistrano or not..
Capistrano is a remote orchestration library, basically it is a nice API for running commands over ssh on a remote server.
As an example, it can be used to run provisioning/setup scripts on a remote server. See the Rubygems AWS repository for an example of this.