mirror of
https://github.com/SrIzan10/starters.git
synced 2026-05-01 11:05:16 +00:00
change connection command from init to link (#86)
This commit is contained in:
@@ -14,7 +14,7 @@ Railway Postgres database.
|
||||
## 💁♀️ How to use
|
||||
|
||||
- [Create a Railway project with the Postgres plugin](https://dev.new)
|
||||
- Connect to your Railway project with `railway init`
|
||||
- Connect to your Railway project with `railway link`
|
||||
- Migrate the database `railway run blitz prisma migrate`
|
||||
- Run the Blitz app `railway run yarn dev`
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ This example starts a Discord bot using [discord.js](https://discord.js.org/#/).
|
||||
## 💁♀️ How to use
|
||||
|
||||
- Install dependencies `yarn`
|
||||
- Connect to your Railway project `railway init`
|
||||
- Connect to your Railway project `railway link`
|
||||
- Start the bot `railway run yarn dev`
|
||||
|
||||
## 📝 Notes
|
||||
|
||||
@@ -13,7 +13,7 @@ This is a [Django](https://www.djangoproject.com/) application that connects to
|
||||
## 💁♀️ How to use
|
||||
|
||||
- [Create a Railway project with the Postgres plugin](https://railway.app/project?plugins=postgresql)
|
||||
- Connect to your Railway project with `railway init`
|
||||
- Connect to your Railway project with `railway link`
|
||||
- Install Python requirements `pip install -r requirements.txt`
|
||||
- Migrate the database `railway run python3 manage.py migrate`
|
||||
- Run Django `railway run python3 manage.py runserver`
|
||||
|
||||
@@ -14,7 +14,7 @@ connects to a Railway Postgres database.
|
||||
## 💁♀️ How to use
|
||||
|
||||
- [Create a Railway project with the Postgres plugin](https://railway.app/project?plugins=postgresql)
|
||||
- Connect to your Railway project with `railway init`
|
||||
- Connect to your Railway project with `railway link`
|
||||
- Install dependencies with `railway run mix deps.get`
|
||||
- Migrate the database `railway run mix ecto.migrate`
|
||||
- Install node dependencies with `cd assets && npm install`
|
||||
@@ -22,6 +22,6 @@ connects to a Railway Postgres database.
|
||||
|
||||
## 📝 Notes
|
||||
|
||||
This example was generated by running `mix phx.new`.
|
||||
This example was generated by running `mix phx.new`.
|
||||
|
||||
Read more about Phoenix at their [official documentation](https://hexdocs.pm/phoenix/api-reference.html#content).
|
||||
|
||||
@@ -15,7 +15,7 @@ to a Railway PostgreSQL database.
|
||||
|
||||
- Install dependencies `yarn`
|
||||
- [Create a Railway project with the Postgres plugin](https://dev.new)
|
||||
- Connect to your Railway project `railway init`
|
||||
- Connect to your Railway project `railway link`
|
||||
- Start the server `railway run yarn dev`
|
||||
|
||||
## 📝 Notes
|
||||
|
||||
@@ -15,7 +15,7 @@ This is an [ExpressJS](https://expressjs.com/) REST API that uses [Prisma](https
|
||||
|
||||
- Install dependencies `yarn`
|
||||
- [Provision a Postgres container on Railway](https://dev.new)
|
||||
- Connect to your Railway project with `railway init`
|
||||
- Connect to your Railway project with `railway link`
|
||||
- Migrate the database `railway run yarn migrate:dev`
|
||||
- Run the Server app `railway run yarn dev`
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ This example starts an [ExpressJS](https://expressjs.com/) server.
|
||||
## 💁♀️ How to use
|
||||
|
||||
- Install dependencies `yarn`
|
||||
- Connect to your Railway project `railway init`
|
||||
- Connect to your Railway project `railway link`
|
||||
- Start the development server `railway run yarn dev`
|
||||
|
||||
## 📝 Notes
|
||||
|
||||
@@ -7,7 +7,7 @@ This example starts an [HTTP Module](https://nodejs.org/api/http.html) server.
|
||||
## 💁♀️ How to use
|
||||
|
||||
- Install dependencies `yarn`
|
||||
- Connect to your Railway project `railway init`
|
||||
- Connect to your Railway project `railway link`
|
||||
- Start the development server `railway run yarn dev`
|
||||
|
||||
## 📝 Notes
|
||||
|
||||
@@ -13,14 +13,14 @@ This is a [Laravel](https://laravel.com/) starter app that connects to a Railway
|
||||
## 💁♀️ How to use
|
||||
|
||||
- [Create a Railway project with the Postgres plugin](https://railway.app/project?plugins=postgresql)
|
||||
- Connect to your Railway project with `railway init`
|
||||
- Connect to your Railway project with `railway link`
|
||||
|
||||
## 📝 Notes
|
||||
|
||||
- **Dockerfile**: The `Dockerfile` and associated files in `docker/` are based on [Laravel Sail PHP 8.0](https://github.com/laravel/sail/tree/1.x/runtimes/8.0)
|
||||
- **Plugin Config**: To connect to a Railway Plugin, Postgres for example, you will need to utilize the environment variables listed for that plugin in the [Railway Docs](https://docs.railway.app/).
|
||||
See the `.env.example` for an example of using these with Postgres.
|
||||
- **Web server port**: Railway dynamically assigns a port for your webserver. We grab the `$PORT` environment variable in `docker/start-container` to set this on Artisan `serve`
|
||||
- **Logging**: Because the disk on Railway containers is ephemeral, we pipe the logs normally output to `storage/logs/laravel.log` to `stdout` [as seen here](https://github.com/sorrell/railavel/commit/2802b8c5032a13a601a903276ee2181678009f67)
|
||||
- **APP_KEY**: This starter will automatically generate the `APP_KEY` (`php artisan key:generate` in the `docker/start-container`)
|
||||
- **Migrations**: This starter automatically runs migrations on deploy (in the `docker/start-container`)
|
||||
- **Dockerfile**: The `Dockerfile` and associated files in `docker/` are based on [Laravel Sail PHP 8.0](https://github.com/laravel/sail/tree/1.x/runtimes/8.0)
|
||||
- **Plugin Config**: To connect to a Railway Plugin, Postgres for example, you will need to utilize the environment variables listed for that plugin in the [Railway Docs](https://docs.railway.app/).
|
||||
See the `.env.example` for an example of using these with Postgres.
|
||||
- **Web server port**: Railway dynamically assigns a port for your webserver. We grab the `$PORT` environment variable in `docker/start-container` to set this on Artisan `serve`
|
||||
- **Logging**: Because the disk on Railway containers is ephemeral, we pipe the logs normally output to `storage/logs/laravel.log` to `stdout` [as seen here](https://github.com/sorrell/railavel/commit/2802b8c5032a13a601a903276ee2181678009f67)
|
||||
- **APP_KEY**: This starter will automatically generate the `APP_KEY` (`php artisan key:generate` in the `docker/start-container`)
|
||||
- **Migrations**: This starter automatically runs migrations on deploy (in the `docker/start-container`)
|
||||
|
||||
@@ -15,7 +15,7 @@ This example is a [NextJS](https://nextjs.org/) todo app that uses
|
||||
## 💁♀️ How to use
|
||||
|
||||
- [Provision a Postgres container on Railway](https://dev.new)
|
||||
- Connect to your Railway project with `railway init`
|
||||
- Connect to your Railway project with `railway link`
|
||||
- Migrate the database `railway run yarn migrate:dev`
|
||||
- Run the NextJS app `railway run yarn dev`
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ This is a [Ruby on Rails](https://rubyonrails.org/) blog that connects to a Rail
|
||||
## 💁♀️ How to use
|
||||
|
||||
- [Create a Railway project with the Postgres plugin](https://railway.app/project?plugins=postgresql)
|
||||
- Connect to your Railway project with `railway init`
|
||||
- Connect to your Railway project with `railway link`
|
||||
- Install Ruby requirements `bundle install`
|
||||
- Migrate the database `railway run rake db:migrate`
|
||||
- Run Rails `railway run bin/rails server`
|
||||
|
||||
@@ -13,7 +13,7 @@ This is a [Ruby on Rails](https://rubyonrails.org/) starter app that connects to
|
||||
## 💁♀️ How to use
|
||||
|
||||
- [Create a Railway project with the Postgres plugin](https://railway.app/project?plugins=postgresql)
|
||||
- Connect to your Railway project with `railway init`
|
||||
- Connect to your Railway project with `railway link`
|
||||
- Install Ruby requirements `bundle install`
|
||||
- Migrate the database `railway run rake db:migrate`
|
||||
- Run Rails `railway run bin/rails server`
|
||||
|
||||
@@ -11,6 +11,6 @@ This example is a simple [Sinatra](http://sinatrarb.com) webserver.
|
||||
|
||||
## 💁♀️ How to use
|
||||
|
||||
- Create Railway project `railway init`
|
||||
- Connect to your Railway project `railway link`
|
||||
- Install Ruby requirements `bundle install`
|
||||
- Run Sinatra `railway run ruby app.rb`
|
||||
|
||||
@@ -15,7 +15,7 @@ This example starts an [ExpressJS](https://expressjs.com/) server containing a p
|
||||
- Create a Slack app with an [incoming webhook](https://api.slack.com/messaging/webhooks).
|
||||
- Click the deploy button and add the `SLACK_WEBHOOK_URL`.
|
||||
- Install dependencies `yarn`
|
||||
- Connect to your Railway project `railway init`
|
||||
- Connect to your Railway project `railway link`
|
||||
- Start the development server `railway run yarn dev`
|
||||
|
||||
## 📝 Notes
|
||||
|
||||
@@ -12,7 +12,7 @@ This examples is a simple [SvelteKit](https://kit.svelte.dev/) app.
|
||||
## 💁♀️ How to use
|
||||
|
||||
- Install dependencies `yarn`
|
||||
- Connect to your Railway project `railway init`
|
||||
- Connect to your Railway project `railway link`
|
||||
- Start the development server `railway run yarn dev`
|
||||
|
||||
## 📝 Notes
|
||||
|
||||
@@ -13,7 +13,7 @@ This example starts a [Telegram](https://telegram.org/) bot on an [ExpressJS](ht
|
||||
## 💁♀️ How to use
|
||||
|
||||
- Install dependencies `yarn`
|
||||
- Connect to your Railway project `railway init`
|
||||
- Connect to your Railway project `railway link`
|
||||
- Start the development server `railway run yarn dev`
|
||||
|
||||
## 📝 Notes
|
||||
|
||||
Reference in New Issue
Block a user