Change an app
Change the setup
The Setup card on the app's page shows what Coresmith deploys: the repository, branch, folder and size, and the web root or main package when the stack has one. Under them, Repository access says how Coresmith gets the code, and the Auto deploy switch sits at the bottom.
- Choose Edit setup.
- Change what you need: the branch, folder, language, framework, runtime, version, web root, main package, database or Redis.
- Save.
Coresmith reads the repository again and fills in what it finds. The change applies from the next deploy. If the form couldn't read the repository, the app's page asks you to check it before the next deploy.
An app picked from GitHub keeps its repository. To deploy a different repository, add it as a new app.
Switch the database or Redis
Edit setup shows the database and Redis the app uses. Pick another one and save:
- Picking a new database, or one already on the server, connects the app to it and puts its connection settings in the app's variables. Deploy to switch over.
- The old database stays on the server with its data. Coresmith doesn't copy the data across, so move what you need before you deploy.
- None, I'll set it up myself disconnects the old database and leaves the app's variables as they are, so the app keeps using it until you change them.
A Laravel app on SQLite keeps using it after you pick None, until you change DB_CONNECTION in its variables. An app that runs Horizon needs Redis for its queue, and Edit setup says so when it has none. Picking a Redis for it also sets QUEUE_CONNECTION to redis.
Pick another runtime version
In the app's Runtime section, choose Change version. Pick a version, or go back to the one the repository asks for. The next deploy uses it.
If the version the app runs no longer gets security fixes, a note on the app's page says so and what to move to. To take the newest patch of the same line, choose Update to in the same section. Keep runtimes up to date.
Resize the app
Choose Edit setup, pick another Size, and save. For PHP apps, the PHP limits card in the app's Runtime section also sets the largest upload, the memory per process, and how long a web request may run. Sizes and PHP limits.
Rename the app
- Choose Rename at the top of the app's page.
- Enter the new name and choose Save.
With a default domain, the app's address follows its name: it moves to the new name straight away, and the old address stops working. An app that had no address because another app had its name's address gets one. The box shows the new address as you type, and Coresmith asks for another name if a different app already has it. Without a default domain, or with the app's address turned off, the name is only for Coresmith, and nothing on the server changes. Either way, the app's activity shows the old name and the new one.
Remove the app
Choose Remove this app in the danger zone at the bottom of the app's page. Coresmith stops the app and takes it off the server's routing. Its files stay on the server for 7 days, then Coresmith clears them.