Framework Frankfurt, Germany
Rails 7.1 and later generate a Dockerfile, and Nodion builds your app with it: Ruby, gems, JavaScript bundling and assets:precompile run the way Rails set them up. Apps with importmap and no package.json can use the Ruby buildpack instead, which precompiles the assets and starts Puma. Either way the app and its PostgreSQL database run in Frankfurt.
config/puma.rb (buildpacks)/up, built into Rails 7.1+RAILS_MASTER_KEY with the contents of config/master.key as a secret on the Environment tab. Nodion sets no PORT for Dockerfile apps: the server listens on the web process port, which the form fills from EXPOSE. Rails 7.1 and 7.2 expose 3000 for Puma. Rails 8 exposes 80 for Thruster, which runs in front of Puma; the image runs as a non-root user, so set HTTP_PORT=8080 and make 8080 the web process port on the Processes tab. DATABASE_URL it gets on the next deploy. The generated bin/docker-entrypoint runs bin/rails db:prepare before the Rails server starts, so pending migrations run when the new version boots. You can also set ./bin/rails db:migrate as the app's release command (API field release_command, see the Docker guide), which runs once per deploy before the new version starts. /up with 200 once the app has booted; set it as the health check path in the app settings. Nodion calls each instance with its internal IP as Host, so if you set config.hosts, exclude /up from host authorization, or the release never goes live. config/environments/production.rb config.hosts << "www.example.com"
config.host_authorization = { exclude: ->(request) { request.path == "/up" } } package.json can choose Buildpacks in the create form instead. Nodion then runs bundle install without development and test gems and assets:precompile with RAILS_ENV=production and SECRET_KEY_BASE_DUMMY=1, starts Puma with config/puma.rb on PORT and sets RAILS_SERVE_STATIC_FILES and RAILS_LOG_TO_STDOUT. Migrations run from a Procfile: Procfile release: bin/rails db:migrate worker: bin/jobs (Solid Queue) or worker: bundle exec sidekiq to the Procfile together with an explicit web: bundle exec puma -C config/puma.rb; without a web: line the first Procfile entry other than release: becomes the default command. Then add a process named worker without a port on the Processes tab. With the Dockerfile, give that process the command ./bin/jobs or bundle exec sidekiq instead. Valkey in the same region gives Sidekiq its REDIS_URL.cache, queue and cable databases for production in config/database.yml, and DATABASE_URL only sets the primary one. Give the others a connection as well before the first deploy, or remove the ones your app does not use.RUBY_VERSION in the Dockerfile. With buildpacks, Nodion reads .ruby-version or the ruby line in the Gemfile and offers 3.3, 3.4 (default) and 4.0.DATABASE_URL, REDIS_URL or CLICKHOUSE_URL. release: line runs with every new build. Dockerfile apps, and redeploys or rollbacks to an earlier image, use a release command set on the app itself, which also takes precedence over the Procfile line. On static sites a release step runs in an image that holds only the built files. Usually not. Set RAILS_MASTER_KEY as a secret, check the web process port (and HTTP_PORT on Rails 8) and use /up as the health check path.
With the generated Dockerfile, bin/docker-entrypoint runs db:prepare when the Rails server starts. With buildpacks, add release: bin/rails db:migrate to a Procfile; it runs once per build before the new version starts, and a failure stops the deploy.
Usually the health check gets a 404 on / because there is no root route, or a 403 from host authorization. Set /up as the health check path and exclude it from host authorization. On Rails 8 with the Dockerfile, also check that the web process port matches HTTP_PORT.
Yes, with the Dockerfile: the JavaScript build runs in your Dockerfile, as in the one Rails generates for jsbundling and cssbundling. The buildpack path is for importmap apps without a package.json.
In the EU Central region in Frankfurt, Germany. Build, registry, the app and its databases, volumes, buckets, logs and metrics stay in that region, and Nodion's API and control plane are hosted in Germany. Nodion GmbH is based in Stuttgart.
Nodion provides the basis for it: Nodion GmbH is based in Stuttgart, Germany, in the Frankfurt region the app, its databases and volumes run in Germany, and you conclude the data processing agreement (DPA) under Art. 28 GDPR electronically in the dashboard. Whether your setup complies also depends on how you configure and use the app.
An app instance starts at 1 EUR per month. The setup in the cost box costs 5.50 EUR per month: App 4 EUR, PostgreSQL 1.50 EUR. Prices are net and billed per second, and you pick bigger sizes or more instances whenever you need them.
Yes. Every app gets a default hostname with HTTPS. Add your own domain on the app's Domains tab; the TLS certificate is issued and renewed automatically.
Earn up to 15 € in credit when signing up.
or with email
Product news, no spam. Unsubscribe anytime.
Successfully subscribed.