How to migrate from Heroku
Scalingo is a Platform as a Service highly compatible with Heroku. This page is here to help you migrate from Heroku to Scalingo as easily as possible.
To be able to follow this tutorial, we assume that you have:
- A Scalingo account
- The Scalingo CLI installed
- A local copy of the repository containing your app’s code (How can I download my code from Heroku?)
Please ensure you are running all commands above from the root of the repository containing your app’s code.
$ cd <app directory>
All operations described below can also be executed through our dashboard.
Creating your Scalingo app
- Start by logging in to the Scalingo platform using our CLI:
$ scalingo login
- You can now create your app:
# Replace my-app with your actual app name $ scalingo create my-app
Configure Environment Variables
- First, retrieve the environment variables from your current Heroku app context:
$ heroku config
- Those environment variables need to be declared in your Scalingo app context. For instance, this command will set the
$ scalingo --app my-app env-set NODE_ENV=production
More information about environment variables can be found in the dedicated documentation page.
Deploying Your App
- You are now ready to deploy your app on Scalingo:
$ git push scalingo master
- Once you have set your Scalingo addons according to those you had on Heroku, you need to migrate your database by dumping it from Heroku and restoring it to Scalingo.
Where to Go Next?
- If your app is using a custom domain, follow the instructions to update your DNS configuration.
- Managing your SSL certificate.
Need Some Help?
Have questions or need to report an issue? Feel free to reach our support team for further assistance through our live chat or by sending an email to firstname.lastname@example.org.